[Liblas-commits] hg: add logic or setting CMAKE_BUILD_TYPE to Debug by default if...

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Dec 30 09:54:33 EST 2010


details:   http://hg.liblas.orghg/rev/6377592d7194
changeset: 2659:6377592d7194
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Dec 30 08:54:26 2010 -0600
description:
add logic or setting CMAKE_BUILD_TYPE to Debug by default if not set and not in the cache

diffstat:

 CMakeLists.txt |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 4a6cc918614d -r 6377592d7194 CMakeLists.txt
--- a/CMakeLists.txt	Wed Dec 29 22:05:51 2010 -0500
+++ b/CMakeLists.txt	Thu Dec 30 08:54:26 2010 -0600
@@ -72,10 +72,14 @@
 ###############################################################################
 # General build settings
 
-# Default to release mode 
+# Default to debug mode until final 1.6.0 release 
 if(NOT MSVC_IDE)
-  set(CMAKE_BUILD_TYPE Release CACHE STRING 
-    "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel")
+  if(NOT CMAKE_BUILD_TYPE)
+
+  set(CMAKE_BUILD_TYPE Debug CACHE STRING 
+    "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)
+  endif()
+    message(STATUS "Setting libLAS build type - ${CMAKE_BUILD_TYPE}")
 endif()
 
 # TODO: Still testing the output paths --mloskot


More information about the Liblas-commits mailing list