[llvm-commits] [llvm] r74794 - /llvm/trunk/CMakeLists.txt
Oscar Fuentes
ofv at wanadoo.es
Sun Jul 5 11:43:53 PDT 2009
Author: ofv
Date: Sun Jul 5 13:43:52 2009
New Revision: 74794
URL: http://llvm.org/viewvc/llvm-project?rev=74794&view=rev
Log:
CMake: Avoids defining _DEBUG on MSVC Release builds. Fixes PR 4379.
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=74794&r1=74793&r2=74794&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Sun Jul 5 13:43:52 2009
@@ -65,7 +65,10 @@
endif()
if( LLVM_ENABLE_ASSERTIONS )
- add_definitions( -D_DEBUG )
+ # MSVC doesn't like _DEBUG on release builds. See PR 4379.
+ if( NOT MSVC OR NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
+ add_definitions( -D_DEBUG )
+ endif()
# On Release builds cmake automatically defines NDEBUG, so we
# explicitly undefine it:
if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
More information about the llvm-commits
mailing list