From b3a05f57dd903e8043cdfb0ea44ca2c6a0404a5c Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 17 Apr 2007 23:27:30 -0400 Subject: COMP: Need to enable ansi C features. --- Tests/Plugin/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/Plugin/CMakeLists.txt b/Tests/Plugin/CMakeLists.txt index a0d1add..4e8ff9e 100644 --- a/Tests/Plugin/CMakeLists.txt +++ b/Tests/Plugin/CMakeLists.txt @@ -5,6 +5,11 @@ SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${Plugin_BINARY_DIR}/bin) SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${Plugin_BINARY_DIR}/lib/plugin) SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${Plugin_BINARY_DIR}/lib/static) +# We need ansi C support. +IF(CMAKE_ANSI_CFLAGS) + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") +ENDIF(CMAKE_ANSI_CFLAGS) + # We need the dynamic loader support from KWSys to load the plugin in # the executable. SET(KWSYS_NAMESPACE kwsys) -- cgit v0.12