diff options
author | Brad King <brad.king@kitware.com> | 2016-12-09 19:23:50 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-12-09 19:23:50 (GMT) |
commit | c7cd379179b42cc3ef3bd49e23f8ff264bbcd041 (patch) | |
tree | a077f581e7c79634952feccdc7720bd89b990651 /Modules/FindBoost.cmake | |
parent | 0c38000393aef700b22a596e35c7975c7a7b1ad4 (diff) | |
parent | c3b6b5babc0269a4b84093443bfb5ba273a6e11b (diff) | |
download | CMake-c7cd379179b42cc3ef3bd49e23f8ff264bbcd041.zip CMake-c7cd379179b42cc3ef3bd49e23f8ff264bbcd041.tar.gz CMake-c7cd379179b42cc3ef3bd49e23f8ff264bbcd041.tar.bz2 |
Merge topic 'FindBoost-vs15'
c3b6b5ba FindBoost: Add support for VS 2017
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r-- | Modules/FindBoost.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 9bd7a30..e6bf3dc 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -427,7 +427,9 @@ function(_Boost_GUESS_COMPILER_PREFIX _ret) elseif (GHSMULTI) set(_boost_COMPILER "-ghs") elseif("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC") - if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) + if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10) + set(_boost_COMPILER "-vc150") + elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) set(_boost_COMPILER "-vc140") elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18) set(_boost_COMPILER "-vc120") @@ -882,7 +884,9 @@ macro(_Boost_UPDATE_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS componentlibvar base else() set(_arch_suffix 32) endif() - if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) + if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10) + list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-15.0) + elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-14.0) elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18) list(APPEND ${componentlibvar} ${${basedir}}/lib${_arch_suffix}-msvc-12.0) |