On 20 June 2017 at 07:06, P F via Boost
He didn’t enumerate the dependencies because in this example there wasn’t any dependencies. If there are dependencies, it would look something like this:
include(CMakeFindDependencyMacro) # Bring in the boost::fusion imported target find_dependency(boost_fusion) # Bring in the boost::config imported target find_dependency(boost_config)
# Snip the computing imported prefix ...
set_target_properties(boost::hana PROPERTIES INTERFACE_COMPILE_FEATURES "cxx_std_14" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" INTERFACE_LINK_LIBRARIES "boost::fusion;boost::config" IMPORTED_LINK_INTERFACE_LANGUAGES "CXX" IMPORTED_LOCATION "${_IMPORT_PREFIX}/lib/libhana.a" # Whatever else you need )
Alright I see better how this works, but I don't think CMake generates this automatically, does it? Can this deal with cyclic dependencies?