From 47e12f465b1b1d8ffa8502976bd21102f256fdfb Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sun, 16 Jan 2011 20:06:12 +0000 Subject: [PATCH] added default target fix non-vs, and fixed indent in CMakeLists.txt --- CMakeLists.txt | 3 ++- build/commands.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9aedce8..3cbfa3d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,7 +85,8 @@ IF(WIN32) SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${VS_ARGS}") SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${VS_ARGS}") - # this line removes "/D NDEBUG" from release, we want them in order to find bugs even on release builds. + # this line removes "/D NDEBUG" from release, we want them in order to + # find bugs even on release builds. SET(CMAKE_CXX_FLAGS_RELEASE "/MD /O2 /Ob2") ENDIF(WIN32) diff --git a/build/commands.py b/build/commands.py index 029f262e..045618c0 100644 --- a/build/commands.py +++ b/build/commands.py @@ -161,6 +161,9 @@ class InternalCommands: # for non-vs always specify a build type (debug, release, etc) if not generator.startswith('Visual Studio'): + # default is default for non-vs + if target == '': + target = 'debug' cmake_args = ' -DCMAKE_BUILD_TYPE=' + target.capitalize() # if not visual studio, use parent dir