summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salisbury <mark.salisbury@hp.com>2013-02-13 16:30:14 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-13 18:37:18 (GMT)
commit8f4cae7aa6e00fb969828ba46326887d0dbcd72c (patch)
treec0aed6f07c81c095d5e7a1a1af07b764977423d9
parent132450066945d2c7244205df662f3137edfad5bc (diff)
downloadCMake-8f4cae7aa6e00fb969828ba46326887d0dbcd72c.zip
CMake-8f4cae7aa6e00fb969828ba46326887d0dbcd72c.tar.gz
CMake-8f4cae7aa6e00fb969828ba46326887d0dbcd72c.tar.bz2
VS: Specify WinCE subsystem also for DLLs
This fixes a link error in VS 2005: unresolved external symbol __DllMainCRTStartup@12.
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index f9df861..620e9b3 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1134,6 +1134,10 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
{
fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n";
}
+ if(this->WindowsCEProject)
+ {
+ fout << "\t\t\t\tSubSystem=\"9\"\n";
+ }
std::string stackVar = "CMAKE_";
stackVar += linkLanguage;
stackVar += "_STACK_SIZE";