COMP: Need ANSI flags for C executable.

This commit is contained in:
Brad King 2005-02-14 08:44:32 -05:00
parent 534ed3eb2b
commit 87b7b8d1f1
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ FOREACH(f ${TOCLEAN_FILES})
ENDIF(EXISTS "${f}")
ENDFOREACH(f)
# Enable ANSI flags for the C executable.
IF(CMAKE_ANSI_CFLAGS)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
ENDIF(CMAKE_ANSI_CFLAGS)
# Configure an executable to check that all the files are missing.
SET(CHECK_FILES)
FOREACH(f ${TOCLEAN_FILES})