File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,8 @@ elseif(APPLE)
157
157
message (STATUS "RPATH support: ${CMAKE_MACOSX_RPATH} " )
158
158
159
159
elseif (WIN32 )
160
- if (NOT VS2015 AND NOT VS2017)
161
- message (FATAL_ERROR "You must use Microsoft Visual Studio 2015 or 2017 as compiler" )
160
+ if (NOT VS2015 AND NOT VS2017 AND NOT VS2019 )
161
+ message (FATAL_ERROR "You must use Microsoft Visual Studio 2015, 2017 or 2019 as compiler" )
162
162
endif ()
163
163
164
164
# compile with full multicore
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ elseif(NOT DEFINED C_GCC AND CMAKE_CXX_COMPILER_ID MATCHES "GNU")
5
5
set (C_GCC 1)
6
6
elseif (NOT DEFINED C_MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
7
7
set (C_MSVC 1)
8
- if (MSVC_VERSION GREATER 1910 AND MSVC_VERSION LESS 1919)
8
+ if (MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS_EQUAL 1929)
9
+ set (VS2019 ON )
10
+ elseif (MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS_EQUAL 1919)
9
11
set (VS2017 ON )
10
12
elseif (MSVC_VERSION GREATER 1899 AND MSVC_VERSION LESS 1910)
11
13
set (VS2015 ON )
You can’t perform that action at this time.
0 commit comments