summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-01-23 18:08:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-01-23 18:08:40 (GMT)
commit0272c209a5dd48a5310431e51ac224bdaae87f5b (patch)
tree5e4941603915db1e6209b5cf49beb4c6d0b9ada4 /Source/cmLocalGenerator.cxx
parent91bd8099d81fd98169ecbf2a894c510e43ad8cc5 (diff)
downloadCMake-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.cxx2
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());