From: eap Date: Thu, 1 Aug 2013 08:28:54 +0000 (+0000) Subject: define _DEBUG_ X-Git-Tag: begin_agr_portmanager_branch_131004~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32a8f53b55145d1e2ba4b928aa83a853e9154edd;p=modules%2Fkernel.git define _DEBUG_ --- diff --git a/salome_adm/cmake_files/SalomeSetupPlatform.cmake b/salome_adm/cmake_files/SalomeSetupPlatform.cmake index e84c48a8e..317be31c5 100644 --- a/salome_adm/cmake_files/SalomeSetupPlatform.cmake +++ b/salome_adm/cmake_files/SalomeSetupPlatform.cmake @@ -105,6 +105,11 @@ ELSE() SET(PLATFORM_LIBS dl) # Dynamic loading (dlopen, dlsym) ENDIF() +## define _DEBUG_ macro +IF(NOT CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") + ADD_DEFINITIONS(-D_DEBUG_) +ENDIF() + ## Apple specific: IF(APPLE) SET(CMAKE_C_COMPILER gcc)