Test for -W switch

This commit is contained in:
Chris Robinson 2007-12-06 21:50:28 -08:00
parent e9eaacd0bd
commit 7892c2e653

View File

@ -51,7 +51,12 @@ SET(EXTRA_LIBS m ${EXTRA_LIBS})
IF("${MSVC}")
# ???
ELSE()
ADD_DEFINITIONS(-W -Wall)
CHECK_C_COMPILER_FLAG(-W HAVE_W_SWITCH)
IF("${HAVE_W_SWITCH}")
ADD_DEFINITIONS(-W)
ENDIF()
ADD_DEFINITIONS(-Wall)
IF(WERROR)
ADD_DEFINITIONS(-Werror)
ENDIF()