diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-07-18 18:31:41 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-08-04 12:01:24 +0200 |
commit | 54aef857b37b5da730dce693d4df04d0a232a0c8 (patch) | |
tree | ecbcfdc5312211ef3993d7b98ccd220b40d2f742 | |
parent | 26e02eae4ba359938230bc449feba1d22a4733bd (diff) | |
download | curl-54aef857b37b5da730dce693d4df04d0a232a0c8.tar.gz |
CMake: fix CURL_WERROR for MSVC
When using CURL_WERROR in MSVC builds, the debug flags were overridden
by the release flags and /WX got added twice in debug mode.
Closes https://github.com/curl/curl/pull/1715
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 171941128..0caf3dc1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -246,7 +246,7 @@ endif(BORLAND) if(CURL_WERROR) if(MSVC_VERSION) set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /WX") - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_RELEASE} /WX") + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /WX") else() # this assumes clang or gcc style options set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") |