summaryrefslogtreecommitdiffstats
path: root/Source/cmGetSourceFilePropertyCommand.cxx
diff options
context:
space:
mode:
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)