For debug builds -DDEBUG is added to compiler options.
authorKirill Frolov <k.frolov@samsung.com>
Tue, 27 Oct 2020 13:25:47 +0000 (16:25 +0300)
committerAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>
Thu, 17 Dec 2020 17:57:29 +0000 (20:57 +0300)
This is required for dlogger to function properly
(some dlogger's functions disabled in non-debug builds).

compileoptions.cmake

index 14764c2a27c96cc5e953065835a1ced8570da26c..a31a97ffb920bce5516212d8ec76c3240ee25c00 100644 (file)
@@ -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()
+
+