mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05: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:
@@ -365,7 +365,7 @@ void cmExtraCodeBlocksGenerator::CreateNewProjectFile(
|
||||
|
||||
// check whether it is a C/C++/CUDA implementation file
|
||||
bool isCFile = false;
|
||||
std::string lang = s->GetLanguage();
|
||||
std::string lang = s->GetOrDetermineLanguage();
|
||||
if (lang == "C" || lang == "CXX" || lang == "CUDA") {
|
||||
std::string const& srcext = s->GetExtension();
|
||||
isCFile = cm->IsSourceExtension(srcext);
|
||||
|
||||
Reference in New Issue
Block a user