[cmake-commits] hoffman committed
cmMakefileLibraryTargetGenerator.cxx 1.41 1.42
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Jun 4 17:17:55 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv23103
Modified Files:
cmMakefileLibraryTargetGenerator.cxx
Log Message:
ENH: prevent crash
Index: cmMakefileLibraryTargetGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefileLibraryTargetGenerator.cxx,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- cmMakefileLibraryTargetGenerator.cxx 8 May 2007 14:32:54 -0000 1.41
+++ cmMakefileLibraryTargetGenerator.cxx 4 Jun 2007 21:17:53 -0000 1.42
@@ -340,6 +340,12 @@
{
cmCustomCommandLine line;
cmSourceFile* sf = this->Makefile->GetOrCreateSource(i->c_str());
+ if(!sf)
+ {
+ cmSystemTools::Error(
+ "could not find resource file.", i->c_str());
+ continue;
+ }
std::string dest = outpath + "Resources/";
dest += sf->GetSourceName();
std::string ext = sf->GetSourceExtension();
More information about the Cmake-commits
mailing list