Revision: 70850
          http://sourceforge.net/p/brlcad/code/70850
Author:   starseeker
Date:     2018-03-23 18:53:46 +0000 (Fri, 23 Mar 2018)
Log Message:
-----------
The way MSVC works, Debug and Release aren't actually enough.

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2018-03-23 15:41:02 UTC (rev 70849)
+++ brlcad/trunk/CMakeLists.txt 2018-03-23 18:53:46 UTC (rev 70850)
@@ -745,13 +745,6 @@
 BOX_PRINT("*** Configuring BRL-CAD Release ${BRLCAD_VERSION}, Build 
${CONFIG_DATE} ***" "*")
 
 #---------------------------------------------------------------------
-# CMake by default provides four different configurations for multi-
-# configuration build tools.  We want only two - Debug and Release.
-if(CMAKE_CONFIGURATION_TYPES AND NOT "${CMAKE_CONFIGURATION_TYPES}" STREQUAL 
"Debug;Release")
-  set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Allowed BRL-CAD 
configuration types" FORCE)
-endif(CMAKE_CONFIGURATION_TYPES AND NOT "${CMAKE_CONFIGURATION_TYPES}" 
STREQUAL "Debug;Release")
-
-#---------------------------------------------------------------------
 # We want to check /usr/local by default, so add it if it exists
 if (IS_DIRECTORY /usr/local)
   set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /usr/local)
@@ -2022,7 +2015,7 @@
   # or just Release builds.
   if(${BRLCAD_FLAGS_OPTIMIZATION} MATCHES "AUTO")
     if(CMAKE_CONFIGURATION_TYPES)
-      set(opt_conf_list "Release")
+      set(opt_conf_list "Release;RelWithDebInfo;MinSizeRel")
     else(CMAKE_CONFIGURATION_TYPES)
       if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
        set(opt_conf_list "ALL")
@@ -2862,11 +2855,6 @@
 # Now put back the BRL-CAD flags
 RESTORE_CACHED_BUILD_FLAGS(_BRLCAD)
 
-# Restore BRL-CAD configurations, if necessary
-if(CMAKE_CONFIGURATION_TYPES AND NOT "${CMAKE_CONFIGURATION_TYPES}" STREQUAL 
"Debug;Release")
-  set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Allowed BRL-CAD 
configuration types" FORCE)
-endif(CMAKE_CONFIGURATION_TYPES AND NOT "${CMAKE_CONFIGURATION_TYPES}" 
STREQUAL "Debug;Release")
-
 # *******************************************************************
 if(BRLCAD_PRINT_MSGS)
   message("***********************************************************")
@@ -2920,11 +2908,6 @@
   verbose_add_subdirectory("" regress)
 endif(NOT BRLCAD_ENABLE_TARGETS OR "${BRLCAD_ENABLE_TARGETS}" GREATER 2)
 
-# Restore BRL-CAD configurations, if necessary
-if(CMAKE_CONFIGURATION_TYPES AND NOT "${CMAKE_CONFIGURATION_TYPES}" STREQUAL 
"Debug;Release")
-  set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Allowed BRL-CAD 
configuration types" FORCE)
-endif(CMAKE_CONFIGURATION_TYPES AND NOT "${CMAKE_CONFIGURATION_TYPES}" 
STREQUAL "Debug;Release")
-
 # *******************************************************************
 # ***        Output and Summarize Results - Stage 9 of 9          ***
 # *******************************************************************

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to