]> git.cworth.org Git - apitrace-tests/commitdiff
Set default build type to debug.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 30 Oct 2011 11:08:01 +0000 (11:08 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 30 Oct 2011 11:08:01 +0000 (11:08 +0000)
CMakeLists.txt

index f69714af88f1010536d51f36d3cd8a085411c74a..907f0ba20737c739dfdaa7534fdde21f7352fa9a 100644 (file)
@@ -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)