From e4ac63fa724c9f253c04994f4e39616efedd4d71 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 12 Nov 2007 12:04:36 -0500 Subject: BUG: better setup of properties for loaded commands --- Source/cmCPluginAPI.cxx | 6 ++++-- 1 file 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(arg); + cmCPluginAPISourceFile *sf = new cmCPluginAPISourceFile; + sf->Properties.SetCMakeInstance(mf->GetCMakeInstance()); + return (void*)sf; } void CCONV cmDestroySourceFile(void *arg) -- cgit v0.12