diff options
author | Brad King <brad.king@kitware.com> | 2021-05-29 12:26:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-29 13:28:36 (GMT) |
commit | f530b3a26729d0820c804e312b72e0061d6eeb4b (patch) | |
tree | e2c37973e6a2c1bb3d13fcb3983a1aafff5f7837 /Source/cmLinkLineComputer.cxx | |
parent | 8a4ca110e49c64c4892a37ffe08a91a5a5219acf (diff) | |
download | CMake-f530b3a26729d0820c804e312b72e0061d6eeb4b.zip CMake-f530b3a26729d0820c804e312b72e0061d6eeb4b.tar.gz CMake-f530b3a26729d0820c804e312b72e0061d6eeb4b.tar.bz2 |
OpenWatcom: Add infrastructure to link to object files
Diffstat (limited to 'Source/cmLinkLineComputer.cxx')
-rw-r--r-- | Source/cmLinkLineComputer.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLinkLineComputer.cxx b/Source/cmLinkLineComputer.cxx index 6eb8d75..5646368 100644 --- a/Source/cmLinkLineComputer.cxx +++ b/Source/cmLinkLineComputer.cxx @@ -75,7 +75,11 @@ void cmLinkLineComputer::ComputeLinkLibs( BT<std::string> linkLib; if (item.IsPath == cmComputeLinkInformation::ItemIsPath::Yes) { - linkLib.Value += cli.GetLibLinkFileFlag(); + if (item.IsObject == cmComputeLinkInformation::ItemIsObject::Yes) { + linkLib.Value += cli.GetObjLinkFileFlag(); + } else { + linkLib.Value += cli.GetLibLinkFileFlag(); + } linkLib.Value += this->ConvertToOutputFormat( this->ConvertToLinkReference(item.Value.Value)); linkLib.Backtrace = item.Value.Backtrace; |