From: gdd Date: Thu, 20 Jun 2013 15:45:17 +0000 (+0000) Subject: Define the PYLOGLEVEL variable used in KERNEL_PY X-Git-Tag: B4KillOfAutomake~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c06c2b54c2f9fdc5f14b98b75316664e7a8536c2;p=modules%2Fkernel.git Define the PYLOGLEVEL variable used in KERNEL_PY --- diff --git a/salome_adm/cmake_files/SalomeSetupPlatform.cmake b/salome_adm/cmake_files/SalomeSetupPlatform.cmake index 7c511fa6b..e84c48a8e 100644 --- a/salome_adm/cmake_files/SalomeSetupPlatform.cmake +++ b/salome_adm/cmake_files/SalomeSetupPlatform.cmake @@ -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() -