aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/macros')
-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")