From 87b7b8d1f1d111f4e0ee6d47400791a03345832d Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 14 Feb 2005 08:44:32 -0500 Subject: [PATCH] COMP: Need ANSI flags for C executable. --- Tests/MakeClean/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/MakeClean/CMakeLists.txt b/Tests/MakeClean/CMakeLists.txt index 6852a6e974..5060ae7eea 100644 --- a/Tests/MakeClean/CMakeLists.txt +++ b/Tests/MakeClean/CMakeLists.txt @@ -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})