PREFIX "${boost_root_dir}")
endfunction()
+set(Boost_context_DEPENDENCIES thread chrono system date_time)
+set(Boost_coroutine_DEPENDENCIES context system)
+set(Boost_filesystem_DEPENDENCIES system)
+set(Boost_iostreams_DEPENDENCIES regex)
+set(Boost_thread_DEPENDENCIES chrono system date_time atomic)
+
macro(build_boost version)
do_build_boost(${version} ${ARGN})
ExternalProject_Get_Property(Boost install_dir)
# target
file(MAKE_DIRECTORY ${Boost_INCLUDE_DIRS})
cmake_parse_arguments(Boost_BUILD "" "" COMPONENTS ${ARGN})
+ foreach(c ${Boost_BUILD_COMPONENTS})
+ list(APPEND components ${c})
+ if(Boost_${c}_DEPENDENCIES)
+ list(APPEND components ${Boost_${c}_DEPENDENCIES})
+ list(REMOVE_DUPLICATES components)
+ endif()
+ endforeach()
+ set(Boost_BUILD_COMPONENTS ${components})
+ unset(components)
+
foreach(c ${Boost_BUILD_COMPONENTS})
string(TOUPPER ${c} upper_c)
if(Boost_USE_STATIC_LIBS)
IMPORTED_LOCATION "${Boost_${upper_c}_LIBRARY}")
list(APPEND Boost_LIBRARIES ${Boost_${upper_c}_LIBRARY})
endforeach()
+ foreach(c ${Boost_BUILD_COMPONENTS})
+ if(Boost_${c}_DEPENDENCIES)
+ foreach(dep ${Boost_${c}_DEPENDENCIES})
+ list(APPEND dependencies Boost::${dep})
+ endforeach()
+ set_target_properties(Boost::${c} PROPERTIES
+ INTERFACE_LINK_LIBRARIES "${dependencies}")
+ unset(dependencies)
+ endif()
+ endforeach()
# for header-only libraries
if(CMAKE_VERSION VERSION_LESS 3.3)