Skip to content

Commit d95f4a6

Browse files
bjudebrycelelbach
authored andcommitted
CMake: Use correct MSVC version
The cmake VERSION_LESS comparison expects versions to be formatted as major.minor.patch.tweak, the current MSVC version is 19.23.28105.4. The current comparison checking agains 1900.0.0.0 instead of 19.0.0.0.
1 parent 617a4d1 commit d95f4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ if ("TBB" STREQUAL "${THRUST_DEVICE_SYSTEM}")
150150
endif ()
151151

152152
if ("MSVC" STREQUAL "${CMAKE_CXX_COMPILER_ID}")
153-
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 1900)
153+
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.00)
154154
message(FATAL_ERROR "This version of MSVC no longer supported.")
155155
endif ()
156156
endif ()

0 commit comments

Comments
 (0)