Browse Source

ENH: avoid crash, but do not make it an error if include flags is missing from a language

pull/1/head
Bill Hoffman 19 years ago
parent
commit
0272c209a5
  1. 2
      Source/cmLocalGenerator.cxx

2
Source/cmLocalGenerator.cxx

@ -1048,7 +1048,7 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang)
std::string flagVar = "CMAKE_INCLUDE_FLAG_";
flagVar += lang;
const char* includeFlag =
this->Makefile->GetRequiredDefinition(flagVar.c_str());
this->Makefile->GetSafeDefinition(flagVar.c_str());
flagVar = "CMAKE_INCLUDE_FLAG_SEP_";
flagVar += lang;
const char* sep = this->Makefile->GetDefinition(flagVar.c_str());

Loading…
Cancel
Save