Revision: 45759
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45759&view=rev
Author:   starseeker
Date:     2011-08-02 18:10:48 +0000 (Tue, 02 Aug 2011)

Log Message:
-----------
key off of the debug option, not build type, since we might be turning on debug 
flags even in a release build.

Modified Paths:
--------------
    brlcad/trunk/misc/CMake/CompilerFlags.cmake

Modified: brlcad/trunk/misc/CMake/CompilerFlags.cmake
===================================================================
--- brlcad/trunk/misc/CMake/CompilerFlags.cmake 2011-08-02 18:08:05 UTC (rev 
45758)
+++ brlcad/trunk/misc/CMake/CompilerFlags.cmake 2011-08-02 18:10:48 UTC (rev 
45759)
@@ -152,7 +152,7 @@
 ENDIF(BRLCAD-ENABLE_PROFILING)
 
 # Debugging flags
-IF(BUILD_TYPE MATCHES "DEBUG")
+IF(BRLCAD-ENABLE_DEBUG_BUILD)
        IF(APPLE)
                EXEC_PROGRAM(sw_vers ARGS -productVersion OUTPUT_VARIABLE 
MACOSX_VERSION)
                IF(${MACOSX_VERSION} VERSION_LESS "10.5")
@@ -175,7 +175,7 @@
        SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} 
${DEBUG_FLAG}")
        SET(CMAKE_SHARED_LINKER_FLAGS_${CFG_TYPE} 
"${CMAKE_SHARED_LINKER_FLAGS_${CFG_TYPE}} ${DEBUG_FLAG}")
        MARK_AS_ADVANCED(DEBUG_FLAG)
-ENDIF(BUILD_TYPE MATCHES "DEBUG")
+ENDIF(BRLCAD-ENABLE_DEBUG_BUILD)
 
 # -fast provokes a stack corruption in the shadow computations because
 # of strict aliasing getting enabled.  we _require_


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

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to