forked from OSchip/llvm-project
CMake: Fixes previous change: CMAKE_BUILD_TYPE is unknown when
generating project files for MSVC. llvm-svn: 74809
This commit is contained in:
parent
c131d3b5a2
commit
c296b89d51
|
@ -66,7 +66,7 @@ endif()
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue