aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros/FindBoost.cmake
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-04-19 22:37:50 +0200
committerjackpoz <giacomopoz@gmail.com>2019-04-19 22:37:50 +0200
commit3d3b7f438c6638aed998f4233b809826a3cf0f54 (patch)
treebb5c0a3e670200b55ead13088160c405198e7e04 /cmake/macros/FindBoost.cmake
parent5262d760ffc73cee61bb6cdd151df1364e9b41f3 (diff)
Buildsystem: Fix finding VS 2019 compiled boost libs
Diffstat (limited to 'cmake/macros/FindBoost.cmake')
-rw-r--r--cmake/macros/FindBoost.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/macros/FindBoost.cmake b/cmake/macros/FindBoost.cmake
index 23e76093e82..37cce11f51c 100644
--- a/cmake/macros/FindBoost.cmake
+++ b/cmake/macros/FindBoost.cmake
@@ -384,7 +384,9 @@ function(_Boost_GUESS_COMPILER_PREFIX _ret)
set (_boost_COMPILER "-il")
endif()
elseif("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
- if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10)
+ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.20)
+ set(_boost_COMPILER "-vc142;-vc141")
+ elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10)
set(_boost_COMPILER "-vc141;-vc140")
elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19)
set(_boost_COMPILER "-vc140")