You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
841 B
26 lines
841 B
5 years ago
|
set(Boost_DIR ${CMAKE_CURRENT_SOURCE_DIR}/CMakePackage_MissingTarget)
|
||
|
find_package(Boost 1.70 COMPONENTS date_time)
|
||
|
|
||
|
foreach(var Boost_FOUND Boost_INCLUDE_DIRS Boost_LIBRARY_DIRS Boost_LIBRARIES
|
||
|
Boost_DATE_TIME_FOUND Boost_DATE_TIME_LIBRARY
|
||
|
Boost_VERSION_MACRO Boost_VERSION_STRING Boost_VERSION Boost_LIB_VERSION
|
||
|
Boost_MAJOR_VERSION Boost_MINOR_VERSION Boost_SUBMINOR_VERSION
|
||
|
)
|
||
|
message(STATUS "${var}: ${${var}}")
|
||
|
endforeach()
|
||
|
|
||
|
foreach(cachevar Boost_INCLUDE_DIR
|
||
|
Boost_DATE_TIME_LIBRARY_DEBUG Boost_DATE_TIME_LIBRARY_RELEASE
|
||
|
)
|
||
|
unset(${cachevar})
|
||
|
message(STATUS "${cachevar}: ${${cachevar}}")
|
||
|
endforeach()
|
||
|
|
||
|
foreach(lib Boost::headers
|
||
|
Boost::boost Boost::diagnostic_definitions Boost::disable_autolinking Boost::dynamic_linking
|
||
|
)
|
||
|
if(NOT TARGET ${lib})
|
||
|
message(FATAL_ERROR "Missing target ${lib}")
|
||
|
endif()
|
||
|
endforeach()
|