From: adam Date: Thu, 28 Apr 2011 12:33:43 +0000 (+0000) Subject: If CMAKE_BUILD_TYPE is not set, set it to Release X-Git-Tag: V6_3_0b1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ed8b0ff795220449479252f24eb4c1e54179939;p=modules%2Fkernel.git If CMAKE_BUILD_TYPE is not set, set it to Release --- diff --git a/salome_adm/cmake_files/FindPLATFORM.cmake b/salome_adm/cmake_files/FindPLATFORM.cmake index 4b08dbf0f..7ba44f0cb 100644 --- a/salome_adm/cmake_files/FindPLATFORM.cmake +++ b/salome_adm/cmake_files/FindPLATFORM.cmake @@ -40,6 +40,10 @@ IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE $ENV{CMAKE_BUILD_TYPE}) ENDIF(NOT CMAKE_BUILD_TYPE) +IF(NOT CMAKE_BUILD_TYPE) + SET(CMAKE_BUILD_TYPE Release) +ENDIF(NOT CMAKE_BUILD_TYPE) + IF(WINDOWS) ELSE(WINDOWS) SET(ADD_WERROR ON)