From c27e9fd656fce1b0ea2bd53ddf85c711c14813d9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 22 Sep 2006 08:42:45 -0400 Subject: [PATCH] COMP: Need ANSI C flags to build check_command_line.c. --- Tests/CustomCommand/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 546a6cc52c..0fd1523bda 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -193,6 +193,7 @@ FOREACH(arg ${CHECK_ARGS}) "${EXPECTED_ARGUMENTS} \"${ARG}\", ") ENDFOREACH(arg) +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/check_command_line.c.in ${CMAKE_CURRENT_BINARY_DIR}/check_command_line.c @ONLY IMMEDIATE)