[cmake-commits] king committed CMakeLists.txt 1.2 1.3

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jan 15 09:09:55 EST 2008


Update of /cvsroot/CMake/CMake/Tests/Preprocess
In directory public:/mounts/ram/cvs-serv19176

Modified Files:
	CMakeLists.txt 
Log Message:
BUG: Test needs ansi C code support.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Preprocess/CMakeLists.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CMakeLists.txt	14 Jan 2008 16:21:06 -0000	1.2
+++ CMakeLists.txt	15 Jan 2008 14:09:52 -0000	1.3
@@ -3,6 +3,11 @@
 # 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



More information about the Cmake-commits mailing list