| 1 |
# Generated by Boost 1.70.0 |
| 2 |
|
| 3 |
if(TARGET Boost::timer) |
| 4 |
return() |
| 5 |
endif() |
| 6 |
|
| 7 |
message(STATUS "Found boost_timer ${boost_timer_VERSION} at ${boost_timer_DIR}") |
| 8 |
|
| 9 |
# Compute the include and library directories relative to this file. |
| 10 |
get_filename_component(_BOOST_CMAKEDIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE) |
| 11 |
get_filename_component(_BOOST_INCLUDEDIR "${_BOOST_CMAKEDIR}/../../include/" ABSOLUTE) |
| 12 |
get_filename_component(_BOOST_LIBDIR "${_BOOST_CMAKEDIR}/../" ABSOLUTE) |
| 13 |
|
| 14 |
# Create imported target Boost::timer |
| 15 |
add_library(Boost::timer UNKNOWN IMPORTED) |
| 16 |
|
| 17 |
set_target_properties(Boost::timer PROPERTIES |
| 18 |
INTERFACE_INCLUDE_DIRECTORIES "${_BOOST_INCLUDEDIR}" |
| 19 |
INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_NO_LIB" |
| 20 |
) |
| 21 |
|
| 22 |
include(${CMAKE_CURRENT_LIST_DIR}/../BoostDetectToolset-1.70.0.cmake) |
| 23 |
|
| 24 |
if(Boost_DEBUG) |
| 25 |
message(STATUS "Scanning ${CMAKE_CURRENT_LIST_DIR}/libboost_timer-variant*.cmake") |
| 26 |
endif() |
| 27 |
|
| 28 |
file(GLOB __boost_variants "${CMAKE_CURRENT_LIST_DIR}/libboost_timer-variant*.cmake") |
| 29 |
|
| 30 |
macro(_BOOST_SKIPPED fname reason) |
| 31 |
if(Boost_DEBUG) |
| 32 |
message(STATUS " ... skipped ${fname} (${reason})") |
| 33 |
endif() |
| 34 |
list(APPEND __boost_skipped "${fname} (${reason})") |
| 35 |
endmacro() |
| 36 |
|
| 37 |
foreach(f IN LISTS __boost_variants) |
| 38 |
if(Boost_DEBUG) |
| 39 |
message(STATUS " Including ${f}") |
| 40 |
endif() |
| 41 |
include(${f}) |
| 42 |
endforeach() |
| 43 |
|
| 44 |
unset(_BOOST_LIBDIR) |
| 45 |
unset(_BOOST_INCLUDEDIR) |
| 46 |
unset(_BOOST_CMAKEDIR) |
| 47 |
|
| 48 |
get_target_property(__boost_configs Boost::timer IMPORTED_CONFIGURATIONS) |
| 49 |
|
| 50 |
if(__boost_variants AND NOT __boost_configs) |
| 51 |
message(STATUS "No suitable boost_timer variant has been identified!") |
| 52 |
if(NOT Boost_DEBUG) |
| 53 |
foreach(s IN LISTS __boost_skipped) |
| 54 |
message(STATUS " ${s}") |
| 55 |
endforeach() |
| 56 |
endif() |
| 57 |
set(boost_timer_FOUND 0) |
| 58 |
set(boost_timer_NOT_FOUND_MESSAGE "No suitable build variant has been found.") |
| 59 |
unset(__boost_skipped) |
| 60 |
unset(__boost_configs) |
| 61 |
unset(__boost_variants) |
| 62 |
unset(_BOOST_TIMER_DEPS) |
| 63 |
return() |
| 64 |
endif() |
| 65 |
|
| 66 |
unset(__boost_skipped) |
| 67 |
unset(__boost_configs) |
| 68 |
unset(__boost_variants) |
| 69 |
|
| 70 |
if(_BOOST_TIMER_DEPS) |
| 71 |
list(REMOVE_DUPLICATES _BOOST_TIMER_DEPS) |
| 72 |
message(STATUS "Adding boost_timer dependencies: ${_BOOST_TIMER_DEPS}") |
| 73 |
endif() |
| 74 |
|
| 75 |
foreach(dep_boost_timer IN LISTS _BOOST_TIMER_DEPS) |
| 76 |
set(_BOOST_QUIET) |
| 77 |
if(boost_timer_FIND_QUIETLY) |
| 78 |
set(_BOOST_QUIET QUIET) |
| 79 |
endif() |
| 80 |
set(_BOOST_REQUIRED) |
| 81 |
if(boost_timer_FIND_REQUIRED) |
| 82 |
set(_BOOST_REQUIRED REQUIRED) |
| 83 |
endif() |
| 84 |
get_filename_component(_BOOST_CMAKEDIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE) |
| 85 |
find_package(boost_${dep_boost_timer} 1.70.0 EXACT CONFIG ${_BOOST_REQUIRED} ${_BOOST_QUIET} HINTS ${_BOOST_CMAKEDIR}) |
| 86 |
set_property(TARGET Boost::timer APPEND PROPERTY INTERFACE_LINK_LIBRARIES Boost::${dep_boost_timer}) |
| 87 |
unset(_BOOST_QUIET) |
| 88 |
unset(_BOOST_REQUIRED) |
| 89 |
unset(_BOOST_CMAKEDIR) |
| 90 |
if(NOT boost_${dep_boost_timer}_FOUND) |
| 91 |
set(boost_timer_FOUND 0) |
| 92 |
set(boost_timer_NOT_FOUND_MESSAGE "A required dependency, boost_${dep_boost_timer}, has not been found.") |
| 93 |
unset(_BOOST_TIMER_DEPS) |
| 94 |
return() |
| 95 |
endif() |
| 96 |
endforeach() |
| 97 |
|
| 98 |
unset(_BOOST_TIMER_DEPS) |