From 970ccbc411c47c72920f1a6c94366ff8dd95a2fe Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Tue, 22 May 2012 11:39:44 -0400 Subject: Set the default CMake build type to be in release mode --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0d4281..5247fc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) set(VERSION "0.2") +if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) +endif() + #find python find_package(PythonInterp REQUIRED) -- cgit v1.2.1