From 50a94f972d26ee15fc22cce657d13023d1022905 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 26 Jan 2021 09:41:55 +0000 Subject: Fix debug macro situation (#5114) Use the standard NDEBUG. --- SetFlags.cmake | 9 --------- 1 file changed, 9 deletions(-) (limited to 'SetFlags.cmake') diff --git a/SetFlags.cmake b/SetFlags.cmake index ff1b4bad4..2900418ea 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -88,15 +88,6 @@ function(set_global_flags) # Make build use Unicode: add_compile_definitions(UNICODE _UNICODE) - else() - # TODO: is this needed? NDEBUG is standard. Also, why are we using _DEBUG? - # Add the preprocessor macros used for distinguishing between debug and release builds (CMake does this automatically for MSVC): - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG") - set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_COVERAGE} -D_DEBUG") - set(CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_COVERAGE} -D_DEBUG") - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG") - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG") endif() # Allow for a forced 32-bit build under 64-bit OS: -- cgit v1.2.3