summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-22 12:42:45 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-22 12:42:45 (GMT)
commitc27e9fd656fce1b0ea2bd53ddf85c711c14813d9 (patch)
tree297412f1141f49a28cd58876c08c02d0dab3823f
parentbffc8ca59f7c19d4f5cf63854a638fca027ecad5 (diff)
downloadCMake-c27e9fd656fce1b0ea2bd53ddf85c711c14813d9.zip
CMake-c27e9fd656fce1b0ea2bd53ddf85c711c14813d9.tar.gz
CMake-c27e9fd656fce1b0ea2bd53ddf85c711c14813d9.tar.bz2
COMP: Need ANSI C flags to build check_command_line.c.
-rw-r--r--Tests/CustomCommand/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index 546a6cc..0fd1523 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)