From 10caa308c7bf71104939f16aaeae94ca8bd0ccad Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Fri, 3 Apr 2015 15:51:48 +0900 Subject: [PATCH] Set CMAKE_BUILD_TYPE 'Release' as default Change-Id: I5c0c8fa4525ebd2c6dd60da7e7f853d580a98d90 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b581c8c..f98c49e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") -- 2.7.4