[cmake-commits] hoffman committed cmLocalGenerator.cxx 1.169 1.170

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jan 23 13:08:42 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv2187

Modified Files:
	cmLocalGenerator.cxx 
Log Message:
ENH: avoid crash, but do not make it an error if include flags is missing from a language


Index: cmLocalGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalGenerator.cxx,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- cmLocalGenerator.cxx	23 Jan 2007 16:39:22 -0000	1.169
+++ cmLocalGenerator.cxx	23 Jan 2007 18:08:40 -0000	1.170
@@ -1048,7 +1048,7 @@
   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());



More information about the Cmake-commits mailing list