blob: 84c6631c92198284a55ddf1226ec164b29227760 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,16 +91,6 @@ add_check_c_cxx_flag("-Wredundant-decls")
add_check_c_flag("-std=gnu99")
add_required_cxx_flag("-std=gnu++11")
-if(CMAKE_BUILD_TYPE STREQUAL "Debug")
- add_check_c_cxx_flag("-g3")
- add_check_c_cxx_flag("-ggdb")
-else()
- add_check_c_cxx_flag("-O3")
- if(NOT CHECK)
- add_check_c_cxx_flag("-DNDEBUG")
- endif()
-endif()
-
if(ASAN)
# -fsanitize=address requires CMAKE_REQUIRED_FLAGS to be explicitely set,
# otherwise the -fsanitize=address check will fail while linking.
|