]> source.dussan.org Git - rspamd.git/commitdiff
Use CMAKE_CXX_FLAGS_{DEBUG,RELEASE} variable for C++ 3187/head
authorPetr Vaněk <pv@excello.cz>
Fri, 13 Dec 2019 09:56:32 +0000 (10:56 +0100)
committerPetr Vaněk <pv@excello.cz>
Fri, 13 Dec 2019 09:56:32 +0000 (10:56 +0100)
The CMAKE_CXX_FLAGS_{DEBUG,RELEASE} variable should be used with C++
rather than CMAKE_C_FLAGS_{DEBUG,RELEASE}.

cmake/Toolset.cmake

index b6c863521dbae5fd390e283c11fab3578648b2fb..a14c1153afe738a46f38c5228c87b254f11ecbe0 100644 (file)
@@ -128,12 +128,12 @@ if (COMPILER_GCC)
     set (CMAKE_CXX_FLAGS_DEBUG         "${CMAKE_CXX_FLAGS_DEBUG} -Og -g -ggdb -g3 -ggdb3")
 else ()
     set (CMAKE_C_FLAGS_DEBUG           "${CMAKE_C_FLAGS_DEBUG} -O1 -g -gdwarf-aranges")
-    set (CMAKE_CXX_FLAGS_DEBUG         "${CMAKE_C_FLAGS_DEBUG} -O1 -g -gdwarf-aranges")
+    set (CMAKE_CXX_FLAGS_DEBUG         "${CMAKE_CXX_FLAGS_DEBUG} -O1 -g -gdwarf-aranges")
 endif()
 
 if (COMPILER_GCC)
     set (CMAKE_C_FLAGS_RELEASE         "${CMAKE_C_FLAGS_RELEASE} -O3 -fomit-frame-pointer")
-    set (CMAKE_CXX_FLAGS_RELEASE       "${CMAKE_C_FLAGS_RELEASE} -O3 -fomit-frame-pointer")
+    set (CMAKE_CXX_FLAGS_RELEASE       "${CMAKE_CXX_FLAGS_RELEASE} -O3 -fomit-frame-pointer")
 else ()
     set (CMAKE_C_FLAGS_RELEASE         "${CMAKE_C_FLAGS_RELEASE} -O2 -fomit-frame-pointer")
     set (CMAKE_CXX_FLAGS_RELEASE       "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fomit-frame-pointer")