We do it like this:
- in projectA/CMakeLists.txt:
set( ProjectA_IN_TREE TRUE CACHE INTERNAL "" )
- in projectA/ProjectA-config.cmake.in (which is converted to
ProjectA-config.cmake by a call to configure_package_config_file from
the CMakePackageConfigHelpers module):
if(
I have a few different cmake based projects that depend on each other (as a
tree, no circular dependencies). Mostly this works great, but a few people
have expressed interested in a superbuild which builds everything together for
various purposes. I can make this work with ExternalProject,