From d75f6073101486e05b6cb4aedb4a923352330309 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 24 Nov 2010 15:54:49 +0000 Subject: [PATCH] Set default build type to debug. --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) -- 2.45.2