diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-01-23 18:08:40 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-01-23 18:08:40 (GMT) |
commit | 0272c209a5dd48a5310431e51ac224bdaae87f5b (patch) | |
tree | 5e4941603915db1e6209b5cf49beb4c6d0b9ada4 /Source/cmLocalGenerator.cxx | |
parent | 91bd8099d81fd98169ecbf2a894c510e43ad8cc5 (diff) | |
download | CMake-0272c209a5dd48a5310431e51ac224bdaae87f5b.zip CMake-0272c209a5dd48a5310431e51ac224bdaae87f5b.tar.gz CMake-0272c209a5dd48a5310431e51ac224bdaae87f5b.tar.bz2 |
ENH: avoid crash, but do not make it an error if include flags is missing from a language
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 299974f..9c30319 100644 --- a/Source/cmLocalGenerator.cxx +++ b/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()); |