From acfa8e768669952cd7f24e02f67dca7bdd906193 Mon Sep 17 00:00:00 2001 From: Henri DF Date: Sun, 15 May 2016 17:43:10 +0000 Subject: [PATCH] Make default release type "build" --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22c3e5ac..539ce783 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ if(NOT DEFINED DIR_ETC) set(DIR_ETC "/etc") endif() +if(NOT CMAKE_BUILD_TYPE) + SET(CMAKE_BUILD_TYPE Release) +endif() + set(DRAIOS_DEBUG_FLAGS "-D_DEBUG") set(CMAKE_C_FLAGS "-Wall -ggdb ${DRAIOS_FEATURE_FLAGS}")