Set CMAKE_BUILD_TYPE 'Release' as default
authorWonYoung Choi <wy80.choi@samsung.com>
Fri, 3 Apr 2015 06:51:48 +0000 (15:51 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Fri, 3 Apr 2015 06:51:48 +0000 (15:51 +0900)
Change-Id: I5c0c8fa4525ebd2c6dd60da7e7f853d580a98d90

CMakeLists.txt

index b581c8c..f98c49e 100644 (file)
@@ -15,6 +15,9 @@ OPTION(X11_SUPPORT "Support x11 for window manager" OFF)
 OPTION(WAYLAND_SUPPORT "Support wayland for window manager" OFF)
 
 # Compiler flags
+IF(NOT CMAKE_BUILD_TYPE)
+    SET(CMAKE_BUILD_TYPE "Release")
+ENDIF(NOT CMAKE_BUILD_TYPE)
 SET(CMAKE_C_FLAGS_PROFILING    "-O2")
 SET(CMAKE_CXX_FLAGS_PROFILING  "-O2 -std=c++0x")
 SET(CMAKE_C_FLAGS_DEBUG        "-O0 -g")