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

This commit is contained in:
Bill Hoffman 2007-01-23 13:08:40 -05:00
parent 91bd8099d8
commit 0272c209a5
1 changed files with 1 additions and 1 deletions

View File

@ -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());