From: Kirill Frolov Date: Tue, 27 Oct 2020 13:25:47 +0000 (+0300) Subject: For debug builds -DDEBUG is added to compiler options. X-Git-Tag: submit/tizen/20210120.035625~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ad2e6da65fb16d8fad421862c3e6fd780b3093c;p=sdk%2Ftools%2Fnetcoredbg.git For debug builds -DDEBUG is added to compiler options. This is required for dlogger to function properly (some dlogger's functions disabled in non-debug builds). --- diff --git a/compileoptions.cmake b/compileoptions.cmake index 14764c2..a31a97f 100644 --- a/compileoptions.cmake +++ b/compileoptions.cmake @@ -146,3 +146,10 @@ if(CLR_CMAKE_ENABLE_CODE_COVERAGE) endif(CLR_CMAKE_PLATFORM_UNIX) endif(CLR_CMAKE_ENABLE_CODE_COVERAGE) + +# inform C-preprocessor about debug type +if (CMAKE_BUILD_TYPE STREQUAL "Debug") + add_definitions(-DDEBUG) +endif() + +