summaryrefslogtreecommitdiff
path: root/Tests/COnly
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-18 09:57:41 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-18 09:57:41 -0500
commitb57b1c563d7d92f1a2d480c496d6eb18e505ad49 (patch)
treeb275583105796cebfaa36b487c29c8449bb9b97e /Tests/COnly
parent872553de7e729788242da37124f41e40228c6f13 (diff)
downloadcmake-b57b1c563d7d92f1a2d480c496d6eb18e505ad49.tar.gz
BUG: fix for bug 6172 add get source file prop LANGUAGE
Diffstat (limited to 'Tests/COnly')
-rw-r--r--Tests/COnly/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt
index de277feba7..c4d76e015c 100644
--- a/Tests/COnly/CMakeLists.txt
+++ b/Tests/COnly/CMakeLists.txt
@@ -12,3 +12,9 @@ if(MSVC_VERSION)
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")