summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-11-12 17:04:36 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-11-12 17:04:36 (GMT)
commite4ac63fa724c9f253c04994f4e39616efedd4d71 (patch)
tree8caa4e36e65b9cbfc6aadcf960a765ec0d92c8f2 /Source/cmCPluginAPI.cxx
parent7bb9c3f955469db7f64dc7549018cb3f7c43d945 (diff)
downloadCMake-e4ac63fa724c9f253c04994f4e39616efedd4d71.zip
CMake-e4ac63fa724c9f253c04994f4e39616efedd4d71.tar.gz
CMake-e4ac63fa724c9f253c04994f4e39616efedd4d71.tar.bz2
BUG: better setup of properties for loaded commands
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 81a5562..e57519b 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -529,8 +529,10 @@ void * CCONV cmCreateSourceFile()
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)