]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Define the PYLOGLEVEL variable used in KERNEL_PY
authorgdd <gdd>
Thu, 20 Jun 2013 15:45:17 +0000 (15:45 +0000)
committergdd <gdd>
Thu, 20 Jun 2013 15:45:17 +0000 (15:45 +0000)
salome_adm/cmake_files/SalomeSetupPlatform.cmake

index 7c511fa6b26c7ff995290d49c460adef6e075288..e84c48a8e5df59d4c7c75c3df77725c1c8505137 100644 (file)
@@ -39,6 +39,13 @@ IF(NOT CMAKE_BUILD_TYPE)
   SET(CMAKE_BUILD_TYPE Release)
 ENDIF(NOT CMAKE_BUILD_TYPE)
 
+## Define the log level according to the build type
+IF(CMAKE_BUILD_TYPE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE STREQUAL "Debug")
+  SET(PYLOGLEVEL DEBUG)
+ELSE()
+  SET(PYLOGLEVEL WARNING)
+ENDIF()
+
 ## Make all warnings errors on non-windows platforms
 #  CURRENTLY DISABLED
 IF(NOT (WIN32 OR APPLE))
@@ -104,4 +111,3 @@ IF(APPLE)
   SET(CMAKE_CXX_COMPILER g++)
   # because default is clang(llvm) with mountain lion at least
 ENDIF()
-