From adfb90c1650bad99fca5cf2622ff8b3badfb9faf Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 8 Mar 2011 09:01:00 +0000 Subject: [PATCH] *** empty log message *** --- salome_adm/cmake_files/FindPLATFORM.cmake | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/salome_adm/cmake_files/FindPLATFORM.cmake b/salome_adm/cmake_files/FindPLATFORM.cmake index 4a4e8dcfd..a49a8c507 100644 --- a/salome_adm/cmake_files/FindPLATFORM.cmake +++ b/salome_adm/cmake_files/FindPLATFORM.cmake @@ -40,17 +40,21 @@ IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE $ENV{CMAKE_BUILD_TYPE}) ENDIF(NOT CMAKE_BUILD_TYPE) +IF(WINDOWS) +ELSE(WINDOWS) + SET(TROLL_VAL $ENV{I_AM_A_TROLL_I_DO_NOT_FIX_${MODULE}_WARNINGS}) + IF(X${TROLL_VAL} STREQUAL X1) + ELSE(X${TROLL_VAL} STREQUAL X1) + SET(CMAKE_C_FLAGS "-Werror") + SET(CMAKE_CXX_FLAGS "-Werror") + ENDIF(X${TROLL_VAL} STREQUAL X1) +ENDIF(WINDOWS) + IF(CMAKE_BUILD_TYPE) IF(WINDOWS) MARK_AS_ADVANCED(CLEAR CMAKE_CONFIGURATION_TYPES) SET(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE} CACHE STRING "compilation types" FORCE) ELSE(WINDOWS) - SET(TROLL_VAL $ENV{I_AM_A_TROLL_I_DO_NOT_FIX_${MODULE}_WARNINGS}) - IF(X${TROLL_VAL} STREQUAL X1) - ELSE(X${TROLL_VAL} STREQUAL X1) - SET(CMAKE_C_FLAGS "-Werror") - SET(CMAKE_CXX_FLAGS "-Werror") - ENDIF(X${TROLL_VAL} STREQUAL X1) IF(CMAKE_BUILD_TYPE STREQUAL Debug) SET(CMAKE_C_FLAGS_DEBUG "-g") SET(CMAKE_CXX_FLAGS_DEBUG "-g") -- 2.39.2