[cmake-commits] hoffman committed CMakeLists.txt 1.12 1.13

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Dec 18 09:57:43 EST 2007


Update of /cvsroot/CMake/CMake/Tests/COnly
In directory public:/mounts/ram/cvs-serv8126/Tests/COnly

Modified Files:
	CMakeLists.txt 
Log Message:
BUG: fix for bug 6172 add get source file prop LANGUAGE


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/COnly/CMakeLists.txt,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- CMakeLists.txt	7 Dec 2007 03:38:29 -0000	1.12
+++ CMakeLists.txt	18 Dec 2007 14:57:41 -0000	1.13
@@ -12,3 +12,9 @@
 endif(MSVC_VERSION)
 string(ASCII 35 32 67 77 97 107 101 ASCII_STRING)
 message(STATUS "String: ${ASCII_STRING}")
+get_source_file_property(LANG conly.c LANGUAGE)
+if("${LANG}" STREQUAL "C")
+  message("Language is C")
+else("${LANG}" STREQUAL "C")
+  message(FATAL_ERROR "Bad language for file conly.c")
+endif("${LANG}" STREQUAL "C")



More information about the Cmake-commits mailing list