From 67d5e3624bb3837dbcb6e5c0994c67c211fec8e4 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 6 Aug 2024 03:36:55 +0200 Subject: [PATCH] cmake: replace an `MSVC_VERSION` with `MSVC` Where the actual version is not relevant. Follow-up to ce81aeb877c242a173f7eecf02dd2723a0cbce42 Closes #14410 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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