From 3ebd9aa08bcd97424bb81026b55810a5c3bbb345 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 15 Jan 2008 09:09:52 -0500 Subject: BUG: Test needs ansi C code support. --- Tests/Preprocess/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/Preprocess/CMakeLists.txt b/Tests/Preprocess/CMakeLists.txt index ae2fa99..d6d9535 100644 --- a/Tests/Preprocess/CMakeLists.txt +++ b/Tests/Preprocess/CMakeLists.txt @@ -3,6 +3,11 @@ project(Preprocess) # This test is meant both as a test and as a reference for supported # syntax on native tool command lines. +# We need ansi C support. +IF(CMAKE_ANSI_CFLAGS) + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") +ENDIF(CMAKE_ANSI_CFLAGS) + #----------------------------------------------------------------------------- # Construct a C-string literal to test passing through a definition on # the command line. We configure the value into a header so it can be -- cgit v0.12