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