diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-01-23 16:39:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-01-23 16:39:22 (GMT) |
commit | 91bd8099d81fd98169ecbf2a894c510e43ad8cc5 (patch) | |
tree | ef75785fe8782b7919295c368b1f5e4d596814fa /Source/cmLocalGenerator.cxx | |
parent | e537b60ea2c0f5c3c38aba9cf8b6ad872aee7f2c (diff) | |
download | CMake-91bd8099d81fd98169ecbf2a894c510e43ad8cc5.zip CMake-91bd8099d81fd98169ecbf2a894c510e43ad8cc5.tar.gz CMake-91bd8099d81fd98169ecbf2a894c510e43ad8cc5.tar.bz2 |
ENH: make the include flag required for a language avoids seg fault
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index ea5aaec..299974f 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1047,7 +1047,8 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang) std::string flagVar = "CMAKE_INCLUDE_FLAG_"; flagVar += lang; - const char* includeFlag = this->Makefile->GetDefinition(flagVar.c_str()); + const char* includeFlag = + this->Makefile->GetRequiredDefinition(flagVar.c_str()); flagVar = "CMAKE_INCLUDE_FLAG_SEP_"; flagVar += lang; const char* sep = this->Makefile->GetDefinition(flagVar.c_str()); @@ -1076,7 +1077,7 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang) const char* sysIncludeFlag = 0; if(repeatFlag) { - sysIncludeFlag = this->Makefile->GetDefinition(sysFlagVar.c_str()); + sysIncludeFlag = this->Makefile->GetSafeDefinition(sysFlagVar.c_str()); } bool flagUsed = false; |