llvm.org GIT mirror llvm / f099f89
Remove NDBEUG from all release types compile flags. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193031 91177308-0d34-0410-b5e6-96231b3b80d8 Yaron Keren 5 years ago
1 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2323 if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
2424 add_definitions( -UNDEBUG )
2525 # Also remove /D NDEBUG to avoid MSVC warnings about conflicting defines.
26 string (REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " "
27 CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
26 set(REGEXP_NDEBUG "(^| )[/-]D *NDEBUG($| )")
27 string (REGEX REPLACE "${REGEXP_NDEBUG}" " "
28 CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
29 string (REGEX REPLACE "${REGEXP_NDEBUG}" " "
30 CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
31 string (REGEX REPLACE "${REGEXP_NDEBUG}" " "
32 CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL}")
2833 endif()
2934 else()
3035 if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )