From: José Fonseca Date: Wed, 24 Nov 2010 15:54:49 +0000 (+0000) Subject: Set default build type to debug. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d75f6073101486e05b6cb4aedb4a923352330309;p=apitrace Set default build type to debug. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a7ac9f5..30befd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,17 @@ -cmake_minimum_required (VERSION 2.6) +cmake_minimum_required (VERSION 2.8) project (apitrace) set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) +# Set default built type +if (NOT CMAKE_BUILD_TYPE) + set (CMAKE_BUILD_TYPE Debug + CACHE + STRING "Choose the build type, options are: None, Debug, Release, RelWithDebInfo, or MinSizeRel." + FORCE) +endif (NOT CMAKE_BUILD_TYPE) + find_package (PythonInterp REQUIRED) find_package (OpenGL REQUIRED) find_package (ZLIB)