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(ADD_WERROR ON)
+ SET(NAMES ACCEPT_SALOME_WARNINGS ACCEPT_${MODULE}_WARNINGS I_AM_A_TROLL_I_DO_NOT_FIX_${MODULE}_WARNINGS)
+ FOREACH(name ${NAMES})
+ SET(VAL $ENV{${name}})
+ IF(X${VAL} STREQUAL X0)
+ SET(ADD_WERROR ON)
+ ENDIF(X${VAL} STREQUAL X0)
+ IF(X${VAL} STREQUAL X1)
+ SET(ADD_WERROR OFF)
+ ENDIF(X${VAL} STREQUAL X1)
+ ENDFOREACH(name ${NAMES})
+ IF(ADD_WERROR)
SET(CMAKE_C_FLAGS "-Werror")
SET(CMAKE_CXX_FLAGS "-Werror")
- ENDIF(X${TROLL_VAL} STREQUAL X1)
+ ENDIF(ADD_WERROR)
ENDIF(WINDOWS)
IF(CMAKE_BUILD_TYPE)