summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.h
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/cmMakefileTargetGenerator.h
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/cmMakefileTargetGenerator.h')
-rw-r--r--Source/cmMakefileTargetGenerator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.h b/Source/cmMakefileTargetGenerator.h
index c36ec59..6878e06 100644
--- a/Source/cmMakefileTargetGenerator.h
+++ b/Source/cmMakefileTargetGenerator.h
@@ -186,6 +186,9 @@ protected:
std::vector<std::string> Objects;
std::vector<std::string> ExternalObjects;
+ // The windows module definition source file (.def), if any.
+ std::string ModuleDefinitionFile;
+
// Set of object file names that will be built in this directory.
std::set<cmStdString> ObjectFiles;
@@ -214,6 +217,9 @@ protected:
// Compute target-specific Fortran language flags.
void AddFortranFlags(std::string& flags);
+ // Helper to add flag for windows .def file.
+ void AddModuleDefinitionFlag(std::string& flags);
+
//==================================================================
// Convenience routines that do nothing more than forward to
// implementaitons