From: Viktor Szakats Date: Tue, 6 Aug 2024 01:36:55 +0000 (+0200) Subject: cmake: replace an `MSVC_VERSION` with `MSVC` X-Git-Tag: curl-8_10_0~366 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67d5e3624bb3837dbcb6e5c0994c67c211fec8e4;p=thirdparty%2Fcurl.git cmake: replace an `MSVC_VERSION` with `MSVC` Where the actual version is not relevant. Follow-up to ce81aeb877c242a173f7eecf02dd2723a0cbce42 Closes #14410 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd3a2161c..cec3565f21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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