cmake: replace an MSVC_VERSION with MSVC

Where the actual version is not relevant.

Follow-up to ce81aeb877
Closes #14410
This commit is contained in:
Viktor Szakats 2024-08-06 03:36:55 +02:00
parent 72ae0d86a4
commit 67d5e3624b
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View 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