summaryrefslogtreecommitdiffstats
path: root/Tests/Plugin
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-18 03:27:30 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-18 03:27:30 (GMT)
commitb3a05f57dd903e8043cdfb0ea44ca2c6a0404a5c (patch)
tree64859420571d8db931ceab8f9933dc73c8fc1185 /Tests/Plugin
parent07b9423e7d1f821e74c945913b8b3b6c58714f19 (diff)
downloadCMake-b3a05f57dd903e8043cdfb0ea44ca2c6a0404a5c.zip
CMake-b3a05f57dd903e8043cdfb0ea44ca2c6a0404a5c.tar.gz
CMake-b3a05f57dd903e8043cdfb0ea44ca2c6a0404a5c.tar.bz2
COMP: Need to enable ansi C features.
Diffstat (limited to 'Tests/Plugin')
-rw-r--r--Tests/Plugin/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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)