From 394d8c3bf6044423b49fa931e3a11a56dd48d3d9 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Tue, 15 Sep 2009 02:53:23 +0000 Subject: [PATCH] Allow the user to choose the build type using CMAKE_BUILD_TYPE by eliminating the overrides in the CMakeLists.txt file --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b616323..54b124c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,14 +15,14 @@ else(READLINE_LIBRARY) SET (READLINE_FLAG ) endif(READLINE_LIBRARY) -SET (CMAKE_BUILD_TYPE gdb) +#SET (CMAKE_BUILD_TYPE rel) +SET (CMAKE_C_FLAGS_REL " -Wall -O3 ${READLINE_FLAG}") +SET (CMAKE_CXX_FLAGS_REL " -Wall -O3 ${READLINE_FLAG}") + +#SET (CMAKE_BUILD_TYPE gdb) SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb ${READLINE_FLAG}") SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb ${READLINE_FLAG}") -#SET (CMAKE_BUILD_TYPE rel) -#SET (CMAKE_C_FLAGS_REL " -Wall -O3 ${READLINE_FLAG}") -#SET (CMAKE_CXX_FLAGS_REL " -Wall -O3 ${READLINE_FLAG}") - include_directories(include) find_package(Boost 1.36.0 COMPONENTS thread)