summaryrefslogtreecommitdiffstats
path: root/Source/cmGetSourceFilePropertyCommand.cxx
diff options
context:
space:
mode:
authorTushar Maheshwari <tushar27192@gmail.com>2019-08-27 16:05:42 (GMT)
committerTushar Maheshwari <tushar27192@gmail.com>2019-08-27 16:05:42 (GMT)
commit8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9 (patch)
tree88c3d054322f1e36ac67958e7da8c88897baaa82 /Source/cmGetSourceFilePropertyCommand.cxx
parent65fe80794d41ab6f0b1e608d7535b7530a2ff51d (diff)
downloadCMake-8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9.zip
CMake-8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9.tar.gz
CMake-8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9.tar.bz2
cmSourceFile: Rename non-const GetLanguage
GetOrDetermineLanguage: - Read the property if available - Determine the Language using the file extension Fix all usage of the non-const member in the repository.
Diffstat (limited to 'Source/cmGetSourceFilePropertyCommand.cxx')
-rw-r--r--Source/cmGetSourceFilePropertyCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGetSourceFilePropertyCommand.cxx b/Source/cmGetSourceFilePropertyCommand.cxx
index a16076d..5a477b9 100644
--- a/Source/cmGetSourceFilePropertyCommand.cxx
+++ b/Source/cmGetSourceFilePropertyCommand.cxx
@@ -25,7 +25,7 @@ bool cmGetSourceFilePropertyCommand::InitialPass(
}
if (sf) {
if (args[2] == "LANGUAGE") {
- this->Makefile->AddDefinition(var, sf->GetLanguage());
+ this->Makefile->AddDefinition(var, sf->GetOrDetermineLanguage());
return true;
}
const char* prop = nullptr;