From 96f146d6f058bf75caaacf5f9104acec61308be9 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 31 May 2015 15:52:00 +0200 Subject: [PATCH] Adding optimization flags to release build. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6b41d5..d72a5b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,9 @@ ADD_DEFINITIONS(-DNO_SPACE_NAVIGATOR_SUPPORT) SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -DSAXUM_DEBUG -g") SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -DSAXUM_DEBUG -g") +SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O2") +SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O2") + set(dir ${CMAKE_CURRENT_SOURCE_DIR}/binaries) set(EXECUTABLE_OUTPUT_PATH ${dir} CACHE PATH "Build directory" FORCE)