Test for -W switch
This commit is contained in:
parent
e9eaacd0bd
commit
7892c2e653
@ -51,7 +51,12 @@ SET(EXTRA_LIBS m ${EXTRA_LIBS})
|
|||||||
IF("${MSVC}")
|
IF("${MSVC}")
|
||||||
# ???
|
# ???
|
||||||
ELSE()
|
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)
|
IF(WERROR)
|
||||||
ADD_DEFINITIONS(-Werror)
|
ADD_DEFINITIONS(-Werror)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user