Logs restored in Release configuration
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 22 Nov 2012 10:38:19 +0000 (11:38 +0100)
committerGerrit Code Review <gerrit2@kim11>
Fri, 23 Nov 2012 09:19:13 +0000 (18:19 +0900)
[Issue#] N/A
[Feature] N/A
[Problem] Logs were disabled in Release configuration
[Cause] N/A
[Solution] Logs enabled for Release configuration

[Verification] Compile wrt in Debug, Profiling and Release mode. Only in
Profiling mode, logs should be permanently disabled.

Change-Id: I743937833d12638c3633009348ae9444b959ab76

CMakeLists.txt

index 3db18e0..b231cfe 100644 (file)
@@ -43,12 +43,12 @@ ENDIF(NOT CMAKE_BUILD_TYPE)
 OPTION(DPL_LOG "DPL logs status" ON)
 
 # logs can be only enabled in debug mode
-IF(CMAKE_BUILD_TYPE MATCHES "Debug" AND DPL_LOG)
+IF(CMAKE_BUILD_TYPE MATCHES "Profiling" AND DPL_LOG)
+    MESSAGE(STATUS "Logging disabled for DPL")
+ELSE(CMAKE_BUILD_TYPE MATCHES "Profiling" AND DPL_LOG)
     ADD_DEFINITIONS("-DDPL_LOGS_ENABLED")
     MESSAGE(STATUS "Logging enabled for DPL")
-ELSE(CMAKE_BUILD_TYPE MATCHES "Debug" AND DPL_LOG)
-    MESSAGE(STATUS "Logging disabled for DPL")
-ENDIF(CMAKE_BUILD_TYPE MATCHES "Debug" AND DPL_LOG)
+ENDIF(CMAKE_BUILD_TYPE MATCHES "Profiling" AND DPL_LOG)
 
 MESSAGE(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
 OPTION(PROFILING "Profiling status" OFF)