Repository navigation
CMake: fix CURL_WERROR for MSVC - #1715
Closed
MarcelRaad wants to merge 1 commit into
Closed
MarcelRaad wants to merge 1 commit into
MarcelRaad wants to merge 1 commit into
Conversation
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 curl#1715
MarcelRaad
force-pushed
the
cmake_fix_msvc_werror
branch
from
August 3, 2017 08:20
6ea619d to
615cd03
Compare
Member
Author
|
Changed to use |
Member
|
This looks like it is just correcting a mistake or is there something more to it? |
Member
Author
|
@jay Yes, now this only uses the correct CFLAGS variable in debug mode. Initially, I had changed it to use CMAKE_C_FLAGS in both debug and release mode, but that didn't work as the configure checks treated warnings as errors too and failed. |
Member
|
ok lgtm then |
Member
Author
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/WX got added twice to the compiler flags for the release build and not
at all for the debug build. Fix this by using CMAKE_C_FLAGS instead of
CMAKE_C_FLAGS_RELEASE and CMAKE_C_FLAGS_DEBUG.
Split from #1711 because I'm totally confused now.