]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
define _DEBUG_
authoreap <eap@opencascade.com>
Thu, 1 Aug 2013 08:28:54 +0000 (08:28 +0000)
committereap <eap@opencascade.com>
Thu, 1 Aug 2013 08:28:54 +0000 (08:28 +0000)
salome_adm/cmake_files/SalomeSetupPlatform.cmake

index e84c48a8e5df59d4c7c75c3df77725c1c8505137..317be31c51792556b722f59eaad40b5fcc71fb65 100644 (file)
@@ -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)