diff options
author | Brad King <brad.king@kitware.com> | 2008-01-23 18:30:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-23 18:30:55 (GMT) |
commit | 09af624deefa6d88e6d13d6a13907e7caf965d25 (patch) | |
tree | 8b240ad61a6fe41b90901ab59fe361369f42b6af /Source/cmComputeLinkInformation.cxx | |
parent | 865c2bc6d657fc79df96b74ca9d1b1eb26f0bbc6 (diff) | |
download | CMake-09af624deefa6d88e6d13d6a13907e7caf965d25.zip CMake-09af624deefa6d88e6d13d6a13907e7caf965d25.tar.gz CMake-09af624deefa6d88e6d13d6a13907e7caf965d25.tar.bz2 |
BUG: Fix generation of Watcom link lines.
- Work-around bug in Watcom command line parsing for spaces in paths.
- Add 'library' option before libraries specified by file path.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r-- | Source/cmComputeLinkInformation.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index d5df212..78ad4de 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -187,6 +187,8 @@ cmComputeLinkInformation // Get options needed to link libraries. this->LibLinkFlag = this->Makefile->GetSafeDefinition("CMAKE_LINK_LIBRARY_FLAG"); + this->LibLinkFileFlag = + this->Makefile->GetSafeDefinition("CMAKE_LINK_LIBRARY_FILE_FLAG"); this->LibLinkSuffix = this->Makefile->GetSafeDefinition("CMAKE_LINK_LIBRARY_SUFFIX"); @@ -622,6 +624,12 @@ void cmComputeLinkInformation::AddTargetItem(std::string const& item, this->SetCurrentLinkType(LinkShared); } + // If this platform wants a flag before the full path, add it. + if(!this->LibLinkFileFlag.empty()) + { + this->Items.push_back(Item(this->LibLinkFileFlag, false)); + } + // Now add the full path to the library. this->Items.push_back(Item(item, true)); } @@ -650,6 +658,12 @@ void cmComputeLinkInformation::AddFullItem(std::string const& item) } } + // If this platform wants a flag before the full path, add it. + if(!this->LibLinkFileFlag.empty()) + { + this->Items.push_back(Item(this->LibLinkFileFlag, false)); + } + // Now add the full path to the library. this->Items.push_back(Item(item, true)); } |