summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-08-30 10:46:40 -0700
committerVicent Martí <tanoku@gmail.com>2011-08-30 10:46:40 -0700
commitb298e03b16010e59bc1bd41c6499e63d4b2343ef (patch)
tree0d5e427e914fd30bd4d0837c42c54126a95b33ee
parent0bd594b61c20f23c6ff32893ed5b096a1d663ab5 (diff)
parent0d5aa7d7b8b8df80a86b93e1b6e1b94e31a285d4 (diff)
downloadlibgit2-b298e03b16010e59bc1bd41c6499e63d4b2343ef.tar.gz
Merge pull request #380 from kiryl/no-release-debug
CMakeLists: no need in split debug/release build
-rw-r--r--CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ffb53cd84..e149cd27f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,12 +57,10 @@ IF (MSVC)
SET(CMAKE_C_FLAGS_DEBUG "/Od /DEBUG /MTd")
SET(CMAKE_C_FLAGS_RELEASE "/MT /O2")
ELSE ()
- SET(CMAKE_C_FLAGS "-Wall -Wextra")
+ SET(CMAKE_C_FLAGS "-O2 -g -Wall -Wextra")
IF (NOT MINGW) # MinGW always does PIC and complains if we tell it to
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
ENDIF ()
- SET(CMAKE_C_FLAGS_DEBUG "-g -O0")
- SET(CMAKE_C_FLAGS_RELEASE "-O2")
ENDIF()
# Build Debug by default