ENH: avoid crash, but do not make it an error if include flags is missing from a language
This commit is contained in:
parent
91bd8099d8
commit
0272c209a5
|
@ -1048,7 +1048,7 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang)
|
||||||
std::string flagVar = "CMAKE_INCLUDE_FLAG_";
|
std::string flagVar = "CMAKE_INCLUDE_FLAG_";
|
||||||
flagVar += lang;
|
flagVar += lang;
|
||||||
const char* includeFlag =
|
const char* includeFlag =
|
||||||
this->Makefile->GetRequiredDefinition(flagVar.c_str());
|
this->Makefile->GetSafeDefinition(flagVar.c_str());
|
||||||
flagVar = "CMAKE_INCLUDE_FLAG_SEP_";
|
flagVar = "CMAKE_INCLUDE_FLAG_SEP_";
|
||||||
flagVar += lang;
|
flagVar += lang;
|
||||||
const char* sep = this->Makefile->GetDefinition(flagVar.c_str());
|
const char* sep = this->Makefile->GetDefinition(flagVar.c_str());
|
||||||
|
|
Loading…
Reference in New Issue