summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-29 20:39:07 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-29 20:39:07 (GMT)
commit024d05adada5b9deaac84f0f4df8beed273c972a (patch)
tree7e217bb3e29c8dd9f230dd5dc7f290e9e8b1dec6 /Source/cmMakefileExecutableTargetGenerator.cxx
parentcaee3af3c5625d1a181c90efdff6fb599f21f699 (diff)
downloadCMake-024d05adada5b9deaac84f0f4df8beed273c972a.zip
CMake-024d05adada5b9deaac84f0f4df8beed273c972a.tar.gz
CMake-024d05adada5b9deaac84f0f4df8beed273c972a.tar.bz2
Fix use of module .def files for MS tools
We recognize .def source files and map them to the /DEF:<file> option in the MSVC tools. Previously this worked only for shared libraries. This commit cleans up the implementation and makes it work for executables too. See issue #9613.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index 48df82a..c7213a6 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -243,6 +243,8 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
this->LocalGenerator->AppendFlags
(linkFlags, this->Target->GetProperty(linkFlagsConfig.c_str()));
+ this->AddModuleDefinitionFlag(linkFlags);
+
// Construct a list of files associated with this executable that
// may need to be cleaned.
std::vector<std::string> exeCleanFiles;