[llvm-commits] [llvm] r74809 - /llvm/trunk/CMakeLists.txt

Oscar Fuentes ofv at wanadoo.es
Sun Jul 5 16:58:21 PDT 2009


Author: ofv
Date: Sun Jul  5 18:58:20 2009
New Revision: 74809

URL: http://llvm.org/viewvc/llvm-project?rev=74809&view=rev
Log:
CMake: Fixes previous change: CMAKE_BUILD_TYPE is unknown when
generating project files for MSVC.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=74809&r1=74808&r2=74809&view=diff

==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Sun Jul  5 18:58:20 2009
@@ -66,7 +66,7 @@
 
 if( LLVM_ENABLE_ASSERTIONS )
   # MSVC doesn't like _DEBUG on release builds. See PR 4379.
-  if( NOT MSVC OR NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
+  if( NOT MSVC )
     add_definitions( -D_DEBUG )
   endif()
   # On Release builds cmake automatically defines NDEBUG, so we





More information about the llvm-commits mailing list