Can ExternalProject BUILD_BYPRODUCTS use generator expressions? It seems maybe not as I get errors about “<” and “>” not being allowed. This is to account for a library that may be built by the externalproject, or not built if it’s found via find_package.
I have been able to implement needed functionality by if() and list(APPEND …) instead with an auxiliary variable.