[cmake-commits] martink committed cmCPluginAPI.cxx 1.40 1.41
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Nov 12 12:04:38 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv783/Source
Modified Files:
cmCPluginAPI.cxx
Log Message:
BUG: better setup of properties for loaded commands
Index: cmCPluginAPI.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCPluginAPI.cxx,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- cmCPluginAPI.cxx 22 Jun 2007 13:58:10 -0000 1.40
+++ cmCPluginAPI.cxx 12 Nov 2007 17:04:36 -0000 1.41
@@ -529,8 +529,10 @@
void * CCONV cmCreateNewSourceFile(void *arg)
{
- (void)arg; // no longer needed
- return (void*)new cmCPluginAPISourceFile;
+ cmMakefile *mf = static_cast<cmMakefile *>(arg);
+ cmCPluginAPISourceFile *sf = new cmCPluginAPISourceFile;
+ sf->Properties.SetCMakeInstance(mf->GetCMakeInstance());
+ return (void*)sf;
}
void CCONV cmDestroySourceFile(void *arg)
More information about the Cmake-commits
mailing list