Skip to content
Snippets Groups Projects
Commit 0f59dc37 authored by Nick Zavaritsky's avatar Nick Zavaritsky
Browse files

Fix CFLAGS setup in Debug mode

We were passing -g flag twice, just uncool.
parent e03f6223
No related branches found
No related tags found
No related merge requests found
...@@ -80,10 +80,9 @@ set(CMAKE_REQUIRED_FLAGS "") ...@@ -80,10 +80,9 @@ set(CMAKE_REQUIRED_FLAGS "")
# #
# Perform build type specific configuration. # Perform build type specific configuration.
# #
if (CMAKE_COMPILER_IS_GNUCC) check_c_compiler_flag("-ggdb" CC_HAS_GGDB)
if (CC_HAS_GGDB)
set (CC_DEBUG_OPT "-ggdb") set (CC_DEBUG_OPT "-ggdb")
else()
set (CC_DEBUG_OPT "-g")
endif() endif()
set (CMAKE_C_FLAGS_DEBUG set (CMAKE_C_FLAGS_DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment