gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 193/208: CMake: fix CURL_WERROR for MSVC


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 193/208: CMake: fix CURL_WERROR for MSVC
Date: Wed, 09 Aug 2017 17:36:30 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit 54aef857b37b5da730dce693d4df04d0a232a0c8
Author: Marcel Raad <address@hidden>
AuthorDate: Tue Jul 18 18:31:41 2017 +0200

    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
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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")

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]