summaryrefslogtreecommitdiffstats
path: root/Source/cmGetSourceFilePropertyCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-18 14:57:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-18 14:57:41 (GMT)
commitb57b1c563d7d92f1a2d480c496d6eb18e505ad49 (patch)
treeb275583105796cebfaa36b487c29c8449bb9b97e /Source/cmGetSourceFilePropertyCommand.cxx
parent872553de7e729788242da37124f41e40228c6f13 (diff)
downloadCMake-b57b1c563d7d92f1a2d480c496d6eb18e505ad49.zip
CMake-b57b1c563d7d92f1a2d480c496d6eb18e505ad49.tar.gz
CMake-b57b1c563d7d92f1a2d480c496d6eb18e505ad49.tar.bz2
BUG: fix for bug 6172 add get source file prop LANGUAGE
Diffstat (limited to 'Source/cmGetSourceFilePropertyCommand.cxx')
-rw-r--r--Source/cmGetSourceFilePropertyCommand.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGetSourceFilePropertyCommand.cxx b/Source/cmGetSourceFilePropertyCommand.cxx
index 0cc9090..366ff16 100644
--- a/Source/cmGetSourceFilePropertyCommand.cxx
+++ b/Source/cmGetSourceFilePropertyCommand.cxx
@@ -49,6 +49,11 @@ bool cmGetSourceFilePropertyCommand::InitialPass(
// needs to be changed to be mutable etc. for computed properties to
// work properly.
sf->GetFullPath();
+ }
+ else if(args[2] == "LANGUAGE")
+ {
+ this->Makefile->AddDefinition(var, sf->GetLanguage());
+ return true;
}
const char *prop = sf->GetProperty(args[2].c_str());
if (prop)