Hi,
I'm using the current WinCE support in the nightly build to build
various things through cmake generated VS2008 solutions. I wondered
about not beeing able to set the correct entry point for my executables
until I debugged the issue. The VS generator used always outputs
hardcoded EntryPointSymbol values to the vcproj. If I dare to specify a
custom /ENTRY in my executables LINK_FLAGS property, I end up with an
invalid vcproj containing two "EntryPointSymbol=" lines. The bug is
caused in this function:
cmLocalVisualStudio7Generator::OutputBuildTool
by this code:
if ( this->WindowsCEProject )
{
if(this->GetVersion() < VS9)
{
fout << "\t\t\t\tSubSystem=\"9\"\n";
}
else
{
fout << "\t\t\t\tSubSystem=\"8\"\n";
}
fout << "\t\t\t\tEntryPointSymbol=\""
<< (isWin32Executable ? "WinMainCRTStartup" : "mainACRTStartup")
<< "\"\n";
}
It is perfectly valid for WinCE apps to specify their entry point (i.e.
http://msdn.microsoft.com/en-us/library/ms859584.aspx). For my part, I
would change it in a way that checks for a user specified
EntryPointSymbol before adding something hardcoded on its own. Want me
to submit a patch ?
Regards,
Marco
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake