[Avida-cvs] [avida-svn] r697 - development

brysonda@myxo.css.msu.edu brysonda at myxo.css.msu.edu
Mon May 22 06:42:50 PDT 2006


Author: brysonda
Date: 2006-05-22 09:42:50 -0400 (Mon, 22 May 2006)
New Revision: 697

Modified:
   development/CMakeLists.txt
Log:
Fix top-level CMakeLists.txt so that default build style is properly defined under new versions of CMake.

Modified: development/CMakeLists.txt
===================================================================
--- development/CMakeLists.txt	2006-05-22 13:04:51 UTC (rev 696)
+++ development/CMakeLists.txt	2006-05-22 13:42:50 UTC (rev 697)
@@ -289,10 +289,13 @@
 
 # Default build mode compiles c++ and c code with debug info and no
 # optimizations.
-SET(CMAKE_BUILD_TYPE
-  "Release"
-  CACHE STRING
-  "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
-)
+IF(NOT CMAKE_BUILD_TYPE)
+  SET(CMAKE_BUILD_TYPE
+    Release
+    CACHE STRING
+    "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
+    FORCE
+  )
+ENDIF(NOT CMAKE_BUILD_TYPE)
 
 




More information about the Avida-cvs mailing list