summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 7061f5d..3ca886a 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -187,7 +187,11 @@ void cmAddExecutable(void *arg, const char *exename,
{
srcs2.push_back(srcs[i]);
}
- mf->AddExecutable(exename, srcs2, (win32 ? true : false));
+ cmTarget* tg = mf->AddExecutable(exename, srcs2);
+ if ( win32 )
+ {
+ tg->SetProperty("WIN32_EXECUTABLE", "ON");
+ }
}
void cmAddUtilityCommand(void *arg, const char* utilityName,