]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: replace an `MSVC_VERSION` with `MSVC`
authorViktor Szakats <commit@vsz.me>
Tue, 6 Aug 2024 01:36:55 +0000 (03:36 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 6 Aug 2024 09:05:49 +0000 (11:05 +0200)
Where the actual version is not relevant.

Follow-up to ce81aeb877c242a173f7eecf02dd2723a0cbce42
Closes #14410

CMakeLists.txt

index 4cd3a2161cd16b24eb64a0dbdb85d6e91a95973c..cec3565f21a3994bde56d14f507c6d5176e129c4 100644 (file)
@@ -1607,7 +1607,7 @@ if(MSVC)
 endif()
 
 if(CURL_WERROR)
-  if(MSVC_VERSION)
+  if(MSVC)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
   else()
     # This assumes clang or gcc style options