[Liblas-commits] hg: CMAKE_BUILD_TYPE is dedicated to single-configuration genera...

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Oct 12 06:19:12 EDT 2010


changeset 9dd9c3a2f731 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=9dd9c3a2f731
summary: CMAKE_BUILD_TYPE is dedicated to single-configuration generators like Makefile, thus disable setting this variable for Visual Studio IDE for which it's meaningless. Tidy up compilation warnings.

diffstat:

 CMakeLists.txt |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 5e45e6abee41 -r 9dd9c3a2f731 CMakeLists.txt
--- a/CMakeLists.txt	Sun Oct 10 22:25:57 2010 -0500
+++ b/CMakeLists.txt	Tue Oct 12 11:20:22 2010 +0100
@@ -53,8 +53,10 @@
 # General build settings
 
 # Default to release mode 
-set(CMAKE_BUILD_TYPE Release CACHE STRING 
-    "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel")
+if(NOT MSVC_IDE)
+  set(CMAKE_BUILD_TYPE Release CACHE STRING 
+      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel")
+endif()
 
 # TODO: Still testing the output paths --mloskot
 set(LIBLAS_BUILD_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE})


More information about the Liblas-commits mailing list