diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-12 20:24:31 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-12 20:24:31 (GMT) |
commit | e020a6d17120513129a651d8a354f1085941b8e2 (patch) | |
tree | 4e4905fd1d23b1ee481d15893f23d4816228476b /Source | |
parent | cb426550609405a61b8f4bc0aafd2996378e11c3 (diff) | |
download | CMake-e020a6d17120513129a651d8a354f1085941b8e2.zip CMake-e020a6d17120513129a651d8a354f1085941b8e2.tar.gz CMake-e020a6d17120513129a651d8a354f1085941b8e2.tar.bz2 |
ENH: add .def file support
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 215e7bf..ea6b6c5 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -834,7 +834,19 @@ void cmLocalUnixMakefileGenerator::OutputSharedLibraryRule(std::ostream& fout, linkFlags += this->GetSafeDefinition(build.c_str()); linkFlags += " "; } - +#ifdef _WIN32 + const std::vector<cmSourceFile*>& sources = t.GetSourceFiles(); + for(std::vector<cmSourceFile*>::const_iterator i = sources.begin(); + i != sources.end(); ++i) + { + if((*i)->GetSourceExtension() == "def") + { + linkFlags += this->GetSafeDefinition("CMAKE_LINK_DEF_FILE_FLAG"); + linkFlags += (*i)->GetFullPath(); + linkFlags += " "; + } + } +#endif this->OutputLibraryRule(fout, name, t, this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_PREFIX"), this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_SUFFIX"), |