diff options
author | Petr Vaněk <pv@excello.cz> | 2019-12-13 10:56:32 +0100 |
---|---|---|
committer | Petr Vaněk <pv@excello.cz> | 2019-12-13 10:56:32 +0100 |
commit | 2121a001ecbed55d78bdf279a5f6223e77dbc83f (patch) | |
tree | e449b0200b9fd5a25b4dad1070f532f7983a1401 /cmake | |
parent | f3587ce1bebb7fcaf529f796dbcec6e436253c05 (diff) | |
download | rspamd-2121a001ecbed55d78bdf279a5f6223e77dbc83f.tar.gz rspamd-2121a001ecbed55d78bdf279a5f6223e77dbc83f.zip |
Use CMAKE_CXX_FLAGS_{DEBUG,RELEASE} variable for C++
The CMAKE_CXX_FLAGS_{DEBUG,RELEASE} variable should be used with C++
rather than CMAKE_C_FLAGS_{DEBUG,RELEASE}.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Toolset.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Toolset.cmake b/cmake/Toolset.cmake index b6c863521..a14c1153a 100644 --- a/cmake/Toolset.cmake +++ b/cmake/Toolset.cmake @@ -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") |