Lines 1-3
Link Here
|
|
|
1 |
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
2 |
# file Copyright.txt or https://cmake.org/licensing for details. |
3 |
|
1 |
#.rst: |
4 |
#.rst: |
2 |
# FindBoost |
5 |
# FindBoost |
3 |
# --------- |
6 |
# --------- |
Lines 202-226
Link Here
|
202 |
# |
205 |
# |
203 |
# Set Boost_NO_BOOST_CMAKE to ON to disable the search for boost-cmake. |
206 |
# Set Boost_NO_BOOST_CMAKE to ON to disable the search for boost-cmake. |
204 |
|
207 |
|
205 |
#============================================================================= |
|
|
206 |
# Copyright 2006-2012 Kitware, Inc. |
207 |
# Copyright 2006-2008 Andreas Schneider <mail@cynapses.org> |
208 |
# Copyright 2007 Wengo |
209 |
# Copyright 2007 Mike Jackson |
210 |
# Copyright 2008 Andreas Pakulat <apaku@gmx.de> |
211 |
# Copyright 2008-2012 Philip Lowman <philip@yhbt.com> |
212 |
# |
213 |
# Distributed under the OSI-approved BSD License (the "License"); |
214 |
# see accompanying file Copyright.txt for details. |
215 |
# |
216 |
# This software is distributed WITHOUT ANY WARRANTY; without even the |
217 |
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
218 |
# See the License for more information. |
219 |
#============================================================================= |
220 |
# (To distribute this file outside of CMake, substitute the full |
221 |
# License text for the above reference.) |
222 |
|
223 |
|
224 |
#------------------------------------------------------------------------------- |
208 |
#------------------------------------------------------------------------------- |
225 |
# Before we go searching, check whether boost-cmake is available, unless the |
209 |
# Before we go searching, check whether boost-cmake is available, unless the |
226 |
# user specifically asked NOT to search for boost-cmake. |
210 |
# user specifically asked NOT to search for boost-cmake. |
Lines 442-465
Link Here
|
442 |
endif() |
426 |
endif() |
443 |
elseif (GHSMULTI) |
427 |
elseif (GHSMULTI) |
444 |
set(_boost_COMPILER "-ghs") |
428 |
set(_boost_COMPILER "-ghs") |
445 |
elseif (MSVC14) |
429 |
elseif("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC") |
446 |
set(_boost_COMPILER "-vc140") |
430 |
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) |
447 |
elseif (MSVC12) |
431 |
set(_boost_COMPILER "-vc140") |
448 |
set(_boost_COMPILER "-vc120") |
432 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18) |
449 |
elseif (MSVC11) |
433 |
set(_boost_COMPILER "-vc120") |
450 |
set(_boost_COMPILER "-vc110") |
434 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 17) |
451 |
elseif (MSVC10) |
435 |
set(_boost_COMPILER "-vc110") |
452 |
set(_boost_COMPILER "-vc100") |
436 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16) |
453 |
elseif (MSVC90) |
437 |
set(_boost_COMPILER "-vc100") |
454 |
set(_boost_COMPILER "-vc90") |
438 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 15) |
455 |
elseif (MSVC80) |
439 |
set(_boost_COMPILER "-vc90") |
456 |
set(_boost_COMPILER "-vc80") |
440 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14) |
457 |
elseif (MSVC71) |
441 |
set(_boost_COMPILER "-vc80") |
458 |
set(_boost_COMPILER "-vc71") |
442 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.10) |
459 |
elseif (MSVC70) # Good luck! |
443 |
set(_boost_COMPILER "-vc71") |
460 |
set(_boost_COMPILER "-vc7") # yes, this is correct |
444 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13) # Good luck! |
461 |
elseif (MSVC60) # Good luck! |
445 |
set(_boost_COMPILER "-vc7") # yes, this is correct |
462 |
set(_boost_COMPILER "-vc6") # yes, this is correct |
446 |
else() # MSVC60 Good luck! |
|
|
447 |
set(_boost_COMPILER "-vc6") # yes, this is correct |
448 |
endif() |
463 |
elseif (BORLAND) |
449 |
elseif (BORLAND) |
464 |
set(_boost_COMPILER "-bcb") |
450 |
set(_boost_COMPILER "-bcb") |
465 |
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro") |
451 |
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro") |
Lines 739-744
Link Here
|
739 |
set(_Boost_THREAD_DEPENDENCIES chrono system date_time atomic) |
725 |
set(_Boost_THREAD_DEPENDENCIES chrono system date_time atomic) |
740 |
set(_Boost_WAVE_DEPENDENCIES filesystem system serialization thread chrono date_time atomic) |
726 |
set(_Boost_WAVE_DEPENDENCIES filesystem system serialization thread chrono date_time atomic) |
741 |
set(_Boost_WSERIALIZATION_DEPENDENCIES serialization) |
727 |
set(_Boost_WSERIALIZATION_DEPENDENCIES serialization) |
|
|
728 |
elseif(NOT Boost_VERSION VERSION_LESS 106200 AND Boost_VERSION VERSION_LESS 106300) |
729 |
set(_Boost_CHRONO_DEPENDENCIES system) |
730 |
set(_Boost_CONTEXT_DEPENDENCIES thread chrono system date_time) |
731 |
set(_Boost_COROUTINE_DEPENDENCIES context system) |
732 |
set(_Boost_FIBER_DEPENDENCIES context thread chrono system date_time) |
733 |
set(_Boost_FILESYSTEM_DEPENDENCIES system) |
734 |
set(_Boost_IOSTREAMS_DEPENDENCIES regex) |
735 |
set(_Boost_LOG_DEPENDENCIES date_time log_setup system filesystem thread regex chrono atomic) |
736 |
set(_Boost_MATH_DEPENDENCIES math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l atomic) |
737 |
set(_Boost_MPI_DEPENDENCIES serialization) |
738 |
set(_Boost_MPI_PYTHON_DEPENDENCIES python mpi serialization) |
739 |
set(_Boost_RANDOM_DEPENDENCIES system) |
740 |
set(_Boost_THREAD_DEPENDENCIES chrono system date_time atomic) |
741 |
set(_Boost_WAVE_DEPENDENCIES filesystem system serialization thread chrono date_time atomic) |
742 |
set(_Boost_WSERIALIZATION_DEPENDENCIES serialization) |
742 |
else() |
743 |
else() |
743 |
message(WARNING "Imported targets not available for Boost version ${Boost_VERSION}") |
744 |
message(WARNING "Imported targets not available for Boost version ${Boost_VERSION}") |
744 |
set(_Boost_IMPORTED_TARGETS FALSE) |
745 |
set(_Boost_IMPORTED_TARGETS FALSE) |
Lines 774-779
Link Here
|
774 |
set(_Boost_COROUTINE_HEADERS "boost/coroutine/all.hpp") |
775 |
set(_Boost_COROUTINE_HEADERS "boost/coroutine/all.hpp") |
775 |
set(_Boost_EXCEPTION_HEADERS "boost/exception/exception.hpp") |
776 |
set(_Boost_EXCEPTION_HEADERS "boost/exception/exception.hpp") |
776 |
set(_Boost_DATE_TIME_HEADERS "boost/date_time/date.hpp") |
777 |
set(_Boost_DATE_TIME_HEADERS "boost/date_time/date.hpp") |
|
|
778 |
set(_Boost_FIBER_HEADERS "boost/fiber/all.hpp") |
777 |
set(_Boost_FILESYSTEM_HEADERS "boost/filesystem/path.hpp") |
779 |
set(_Boost_FILESYSTEM_HEADERS "boost/filesystem/path.hpp") |
778 |
set(_Boost_GRAPH_HEADERS "boost/graph/adjacency_list.hpp") |
780 |
set(_Boost_GRAPH_HEADERS "boost/graph/adjacency_list.hpp") |
779 |
set(_Boost_GRAPH_PARALLEL_HEADERS "boost/graph/adjacency_list.hpp") |
781 |
set(_Boost_GRAPH_PARALLEL_HEADERS "boost/graph/adjacency_list.hpp") |
Lines 805-810
Link Here
|
805 |
set(_Boost_UNIT_TEST_FRAMEWORK_HEADERS "boost/test/framework.hpp") |
807 |
set(_Boost_UNIT_TEST_FRAMEWORK_HEADERS "boost/test/framework.hpp") |
806 |
set(_Boost_WAVE_HEADERS "boost/wave.hpp") |
808 |
set(_Boost_WAVE_HEADERS "boost/wave.hpp") |
807 |
set(_Boost_WSERIALIZATION_HEADERS "boost/archive/text_wiarchive.hpp") |
809 |
set(_Boost_WSERIALIZATION_HEADERS "boost/archive/text_wiarchive.hpp") |
|
|
810 |
if(WIN32) |
811 |
set(_Boost_BZIP2_HEADERS "boost/iostreams/filter/bzip2.hpp") |
812 |
set(_Boost_ZLIB_HEADERS "boost/iostreams/filter/zlib.hpp") |
813 |
endif() |
808 |
|
814 |
|
809 |
string(TOUPPER ${component} uppercomponent) |
815 |
string(TOUPPER ${component} uppercomponent) |
810 |
set(${_hdrs} ${_Boost_${uppercomponent}_HEADERS} PARENT_SCOPE) |
816 |
set(${_hdrs} ${_Boost_${uppercomponent}_HEADERS} PARENT_SCOPE) |
Lines 862-867
Link Here
|
862 |
endfunction() |
868 |
endfunction() |
863 |
|
869 |
|
864 |
# |
870 |
# |
|
|
871 |
# Update library search directory hint variable with paths used by prebuilt boost binaries. |
872 |
# |
873 |
# Prebuilt windows binaries (https://sourceforge.net/projects/boost/files/boost-binaries/) |
874 |
# have library directories named using MSVC compiler version and architecture. |
875 |
# This function would append corresponding directories if MSVC is a current compiler, |
876 |
# so having `BOOST_ROOT` would be enough to specify to find everything. |
877 |
# |
878 |
macro(_Boost_UPDATE_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS componentlibvar basedir) |
879 |
if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC") |
880 |
if(CMAKE_SIZEOF_VOID_P EQUAL 8) |
881 |
set(_arch_suffix 64) |
882 |
else() |
883 |
set(_arch_suffix 32) |
884 |
endif() |
885 |
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) |
886 |
list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-14.0) |
887 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18) |
888 |
list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-12.0) |
889 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 17) |
890 |
list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-11.0) |
891 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16) |
892 |
list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-10.0) |
893 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 15) |
894 |
list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-9.0) |
895 |
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14) |
896 |
list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-8.0) |
897 |
endif() |
898 |
endif() |
899 |
endmacro() |
900 |
|
901 |
# |
865 |
# End functions/macros |
902 |
# End functions/macros |
866 |
# |
903 |
# |
867 |
#------------------------------------------------------------------------------- |
904 |
#------------------------------------------------------------------------------- |
Lines 907-913
Link Here
|
907 |
# _Boost_COMPONENT_HEADERS. See the instructions at the top of |
944 |
# _Boost_COMPONENT_HEADERS. See the instructions at the top of |
908 |
# _Boost_COMPONENT_DEPENDENCIES. |
945 |
# _Boost_COMPONENT_DEPENDENCIES. |
909 |
set(_Boost_KNOWN_VERSIONS ${Boost_ADDITIONAL_VERSIONS} |
946 |
set(_Boost_KNOWN_VERSIONS ${Boost_ADDITIONAL_VERSIONS} |
910 |
"1.61.0" "1.61" "1.60.0" "1.60" |
947 |
"1.62.0" "1.62" "1.61.0" "1.61" "1.60.0" "1.60" |
911 |
"1.59.0" "1.59" "1.58.0" "1.58" "1.57.0" "1.57" "1.56.0" "1.56" "1.55.0" "1.55" |
948 |
"1.59.0" "1.59" "1.58.0" "1.58" "1.57.0" "1.57" "1.56.0" "1.56" "1.55.0" "1.55" |
912 |
"1.54.0" "1.54" "1.53.0" "1.53" "1.52.0" "1.52" "1.51.0" "1.51" |
949 |
"1.54.0" "1.54" "1.53.0" "1.53" "1.52.0" "1.52" "1.51.0" "1.51" |
913 |
"1.50.0" "1.50" "1.49.0" "1.49" "1.48.0" "1.48" "1.47.0" "1.47" "1.46.1" |
950 |
"1.50.0" "1.50" "1.49.0" "1.49" "1.48.0" "1.48" "1.47.0" "1.47" "1.46.1" |
Lines 1143-1150
Link Here
|
1143 |
math(EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000") |
1180 |
math(EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000") |
1144 |
math(EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100") |
1181 |
math(EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100") |
1145 |
|
1182 |
|
1146 |
set(Boost_ERROR_REASON |
1183 |
string(APPEND Boost_ERROR_REASON |
1147 |
"${Boost_ERROR_REASON}Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}\nBoost include path: ${Boost_INCLUDE_DIR}") |
1184 |
"Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}\nBoost include path: ${Boost_INCLUDE_DIR}") |
1148 |
if(Boost_DEBUG) |
1185 |
if(Boost_DEBUG) |
1149 |
message(STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] " |
1186 |
message(STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] " |
1150 |
"version.hpp reveals boost " |
1187 |
"version.hpp reveals boost " |
Lines 1166-1181
Link Here
|
1166 |
endif() |
1203 |
endif() |
1167 |
if(NOT Boost_FOUND) |
1204 |
if(NOT Boost_FOUND) |
1168 |
# State that we found a version of Boost that is too new or too old. |
1205 |
# State that we found a version of Boost that is too new or too old. |
1169 |
set(Boost_ERROR_REASON |
1206 |
string(APPEND Boost_ERROR_REASON |
1170 |
"${Boost_ERROR_REASON}\nDetected version of Boost is too ${_Boost_VERSION_AGE}. Requested version was ${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}") |
1207 |
"\nDetected version of Boost is too ${_Boost_VERSION_AGE}. Requested version was ${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}") |
1171 |
if (Boost_FIND_VERSION_PATCH) |
1208 |
if (Boost_FIND_VERSION_PATCH) |
1172 |
set(Boost_ERROR_REASON |
1209 |
string(APPEND Boost_ERROR_REASON |
1173 |
"${Boost_ERROR_REASON}.${Boost_FIND_VERSION_PATCH}") |
1210 |
".${Boost_FIND_VERSION_PATCH}") |
1174 |
endif () |
1211 |
endif () |
1175 |
if (NOT Boost_FIND_VERSION_EXACT) |
1212 |
if (NOT Boost_FIND_VERSION_EXACT) |
1176 |
set(Boost_ERROR_REASON "${Boost_ERROR_REASON} (or newer)") |
1213 |
string(APPEND Boost_ERROR_REASON " (or newer)") |
1177 |
endif () |
1214 |
endif () |
1178 |
set(Boost_ERROR_REASON "${Boost_ERROR_REASON}.") |
1215 |
string(APPEND Boost_ERROR_REASON ".") |
1179 |
endif () |
1216 |
endif () |
1180 |
else() |
1217 |
else() |
1181 |
# Caller will accept any Boost version. |
1218 |
# Caller will accept any Boost version. |
Lines 1183-1190
Link Here
|
1183 |
endif() |
1220 |
endif() |
1184 |
else() |
1221 |
else() |
1185 |
set(Boost_FOUND 0) |
1222 |
set(Boost_FOUND 0) |
1186 |
set(Boost_ERROR_REASON |
1223 |
string(APPEND Boost_ERROR_REASON |
1187 |
"${Boost_ERROR_REASON}Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers.") |
1224 |
"Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers.") |
1188 |
endif() |
1225 |
endif() |
1189 |
|
1226 |
|
1190 |
# ------------------------------------------------------------------------ |
1227 |
# ------------------------------------------------------------------------ |
Lines 1261-1277
Link Here
|
1261 |
# g using debug versions of the standard and runtime |
1298 |
# g using debug versions of the standard and runtime |
1262 |
# support libraries |
1299 |
# support libraries |
1263 |
if(WIN32 AND Boost_USE_DEBUG_RUNTIME) |
1300 |
if(WIN32 AND Boost_USE_DEBUG_RUNTIME) |
1264 |
if(MSVC OR "${CMAKE_CXX_COMPILER}" MATCHES "icl" |
1301 |
if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" |
|
|
1302 |
OR "${CMAKE_CXX_COMPILER}" MATCHES "icl" |
1265 |
OR "${CMAKE_CXX_COMPILER}" MATCHES "icpc") |
1303 |
OR "${CMAKE_CXX_COMPILER}" MATCHES "icpc") |
1266 |
set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}g") |
1304 |
string(APPEND _boost_DEBUG_ABI_TAG "g") |
1267 |
endif() |
1305 |
endif() |
1268 |
endif() |
1306 |
endif() |
1269 |
# y using special debug build of python |
1307 |
# y using special debug build of python |
1270 |
if(Boost_USE_DEBUG_PYTHON) |
1308 |
if(Boost_USE_DEBUG_PYTHON) |
1271 |
set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}y") |
1309 |
string(APPEND _boost_DEBUG_ABI_TAG "y") |
1272 |
endif() |
1310 |
endif() |
1273 |
# d using a debug version of your code |
1311 |
# d using a debug version of your code |
1274 |
set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}d") |
1312 |
string(APPEND _boost_DEBUG_ABI_TAG "d") |
1275 |
# p using the STLport standard library rather than the |
1313 |
# p using the STLport standard library rather than the |
1276 |
# default one supplied with your compiler |
1314 |
# default one supplied with your compiler |
1277 |
if(Boost_USE_STLPORT) |
1315 |
if(Boost_USE_STLPORT) |
Lines 1319-1326
Link Here
|
1319 |
|
1357 |
|
1320 |
if(BOOST_ROOT) |
1358 |
if(BOOST_ROOT) |
1321 |
list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} ${BOOST_ROOT}/lib ${BOOST_ROOT}/stage/lib) |
1359 |
list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} ${BOOST_ROOT}/lib ${BOOST_ROOT}/stage/lib) |
|
|
1360 |
_Boost_UPDATE_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS(_boost_LIBRARY_SEARCH_DIRS_${c} BOOST_ROOT) |
1322 |
elseif(_ENV_BOOST_ROOT) |
1361 |
elseif(_ENV_BOOST_ROOT) |
1323 |
list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} ${_ENV_BOOST_ROOT}/lib ${_ENV_BOOST_ROOT}/stage/lib) |
1362 |
list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} ${_ENV_BOOST_ROOT}/lib ${_ENV_BOOST_ROOT}/stage/lib) |
|
|
1363 |
_Boost_UPDATE_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS(_boost_LIBRARY_SEARCH_DIRS_${c} _ENV_BOOST_ROOT) |
1324 |
endif() |
1364 |
endif() |
1325 |
|
1365 |
|
1326 |
list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} |
1366 |
list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} |
Lines 1599-1624
Link Here
|
1599 |
set(Boost_FOUND 0) |
1639 |
set(Boost_FOUND 0) |
1600 |
# We were unable to find some libraries, so generate a sensible |
1640 |
# We were unable to find some libraries, so generate a sensible |
1601 |
# error message that lists the libraries we were unable to find. |
1641 |
# error message that lists the libraries we were unable to find. |
1602 |
set(Boost_ERROR_REASON |
1642 |
string(APPEND Boost_ERROR_REASON |
1603 |
"${Boost_ERROR_REASON}\nCould not find the following") |
1643 |
"\nCould not find the following") |
1604 |
if(Boost_USE_STATIC_LIBS) |
1644 |
if(Boost_USE_STATIC_LIBS) |
1605 |
set(Boost_ERROR_REASON "${Boost_ERROR_REASON} static") |
1645 |
string(APPEND Boost_ERROR_REASON " static") |
1606 |
endif() |
1646 |
endif() |
1607 |
set(Boost_ERROR_REASON |
1647 |
string(APPEND Boost_ERROR_REASON |
1608 |
"${Boost_ERROR_REASON} Boost libraries:\n") |
1648 |
" Boost libraries:\n") |
1609 |
foreach(COMPONENT ${_Boost_MISSING_COMPONENTS}) |
1649 |
foreach(COMPONENT ${_Boost_MISSING_COMPONENTS}) |
1610 |
set(Boost_ERROR_REASON |
1650 |
string(APPEND Boost_ERROR_REASON |
1611 |
"${Boost_ERROR_REASON} ${Boost_NAMESPACE}_${COMPONENT}\n") |
1651 |
" ${Boost_NAMESPACE}_${COMPONENT}\n") |
1612 |
endforeach() |
1652 |
endforeach() |
1613 |
|
1653 |
|
1614 |
list(LENGTH Boost_FIND_COMPONENTS Boost_NUM_COMPONENTS_WANTED) |
1654 |
list(LENGTH Boost_FIND_COMPONENTS Boost_NUM_COMPONENTS_WANTED) |
1615 |
list(LENGTH _Boost_MISSING_COMPONENTS Boost_NUM_MISSING_COMPONENTS) |
1655 |
list(LENGTH _Boost_MISSING_COMPONENTS Boost_NUM_MISSING_COMPONENTS) |
1616 |
if (${Boost_NUM_COMPONENTS_WANTED} EQUAL ${Boost_NUM_MISSING_COMPONENTS}) |
1656 |
if (${Boost_NUM_COMPONENTS_WANTED} EQUAL ${Boost_NUM_MISSING_COMPONENTS}) |
1617 |
set(Boost_ERROR_REASON |
1657 |
string(APPEND Boost_ERROR_REASON |
1618 |
"${Boost_ERROR_REASON}No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.") |
1658 |
"No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.") |
1619 |
else () |
1659 |
else () |
1620 |
set(Boost_ERROR_REASON |
1660 |
string(APPEND Boost_ERROR_REASON |
1621 |
"${Boost_ERROR_REASON}Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.") |
1661 |
"Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.") |
1622 |
endif () |
1662 |
endif () |
1623 |
endif () |
1663 |
endif () |
1624 |
|
1664 |
|
Lines 1697-1709
Link Here
|
1697 |
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX" |
1737 |
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX" |
1698 |
IMPORTED_LOCATION "${Boost_${UPPERCOMPONENT}_LIBRARY}") |
1738 |
IMPORTED_LOCATION "${Boost_${UPPERCOMPONENT}_LIBRARY}") |
1699 |
endif() |
1739 |
endif() |
1700 |
if(EXISTS "${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG}") |
|
|
1701 |
set_property(TARGET Boost::${COMPONENT} APPEND PROPERTY |
1702 |
IMPORTED_CONFIGURATIONS DEBUG) |
1703 |
set_target_properties(Boost::${COMPONENT} PROPERTIES |
1704 |
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" |
1705 |
IMPORTED_LOCATION_DEBUG "${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG}") |
1706 |
endif() |
1707 |
if(EXISTS "${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE}") |
1740 |
if(EXISTS "${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE}") |
1708 |
set_property(TARGET Boost::${COMPONENT} APPEND PROPERTY |
1741 |
set_property(TARGET Boost::${COMPONENT} APPEND PROPERTY |
1709 |
IMPORTED_CONFIGURATIONS RELEASE) |
1742 |
IMPORTED_CONFIGURATIONS RELEASE) |
Lines 1711-1716
Link Here
|
1711 |
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" |
1744 |
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" |
1712 |
IMPORTED_LOCATION_RELEASE "${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE}") |
1745 |
IMPORTED_LOCATION_RELEASE "${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE}") |
1713 |
endif() |
1746 |
endif() |
|
|
1747 |
if(EXISTS "${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG}") |
1748 |
set_property(TARGET Boost::${COMPONENT} APPEND PROPERTY |
1749 |
IMPORTED_CONFIGURATIONS DEBUG) |
1750 |
set_target_properties(Boost::${COMPONENT} PROPERTIES |
1751 |
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" |
1752 |
IMPORTED_LOCATION_DEBUG "${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG}") |
1753 |
endif() |
1714 |
if(_Boost_${UPPERCOMPONENT}_DEPENDENCIES) |
1754 |
if(_Boost_${UPPERCOMPONENT}_DEPENDENCIES) |
1715 |
unset(_Boost_${UPPERCOMPONENT}_TARGET_DEPENDENCIES) |
1755 |
unset(_Boost_${UPPERCOMPONENT}_TARGET_DEPENDENCIES) |
1716 |
foreach(dep ${_Boost_${UPPERCOMPONENT}_DEPENDENCIES}) |
1756 |
foreach(dep ${_Boost_${UPPERCOMPONENT}_DEPENDENCIES}) |