diff options
author | Veeti Paananen <veeti.paananen@rojekti.fi> | 2012-10-19 23:34:00 +0300 |
---|---|---|
committer | Veeti Paananen <veeti.paananen@rojekti.fi> | 2012-10-20 02:57:02 +0300 |
commit | 291f7122927d2cc170dc63c378a08fa78515d987 (patch) | |
tree | edf375dd991384046dfdefa8ac0ad313bde00680 | |
parent | 9795a40f886db0e9b700252e08d34d0b37ff8ecb (diff) | |
download | libgit2-291f7122927d2cc170dc63c378a08fa78515d987.tar.gz |
Let environment CFLAGS override the debug flags
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fb8eba56..d69a84c85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,8 +93,8 @@ IF (MSVC) # Precompiled headers ELSE () + SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}") SET(CMAKE_C_FLAGS "-O2 -g -D_GNU_SOURCE -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wmissing-prototypes ${CMAKE_C_FLAGS}") - SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") IF (MINGW) # MinGW always does PIC and complains if we tell it to STRING(REGEX REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}") ELSE () |