[cmake-commits] king committed CMakeLists.txt 1.2 1.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Apr 17 23:27:32 EDT 2007
Update of /cvsroot/CMake/CMake/Tests/Plugin
In directory public:/mounts/ram/cvs-serv27177
Modified Files:
CMakeLists.txt
Log Message:
COMP: Need to enable ansi C features.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Plugin/CMakeLists.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CMakeLists.txt 17 Apr 2007 17:52:50 -0000 1.2
+++ CMakeLists.txt 18 Apr 2007 03:27:30 -0000 1.3
@@ -5,6 +5,11 @@
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)
More information about the Cmake-commits
mailing list