mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user