diff options
author | Brad King <brad.king@kitware.com> | 2008-01-15 14:09:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-15 14:09:52 (GMT) |
commit | 3ebd9aa08bcd97424bb81026b55810a5c3bbb345 (patch) | |
tree | c374b8b3f187035a6783c3991a7fb3b6890c5c8f /Tests | |
parent | 53e9b5b329e37e3c47d821e9c57e72a68fffb5e3 (diff) | |
download | CMake-3ebd9aa08bcd97424bb81026b55810a5c3bbb345.zip CMake-3ebd9aa08bcd97424bb81026b55810a5c3bbb345.tar.gz CMake-3ebd9aa08bcd97424bb81026b55810a5c3bbb345.tar.bz2 |
BUG: Test needs ansi C code support.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Preprocess/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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 |