Commit b298e03b16010e59bc1bd41c6499e63d4b2343ef

Vicent Martí 2011-08-30T10:46:40

Merge pull request #380 from kiryl/no-release-debug CMakeLists: no need in split debug/release build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ffb53cd..e149cd2 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