Salome HOME
RNV: win32 building.
[modules/kernel.git] / 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)