From 951ed493b819bf0d50983f86c77e7d81c0cc8dac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sun, 30 Oct 2011 11:08:01 +0000 Subject: [PATCH] Set default build type to debug. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f69714a..907f0ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,14 @@ cmake_minimum_required (VERSION 2.8) project (apitrace-tests) +# 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 (OpenGL REQUIRED) find_package (GLUT) -- 2.43.0