summaryrefslogtreecommitdiffstats
path: root/Source/cmOrderLinkDirectories.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmOrderLinkDirectories.cxx')
-rw-r--r--Source/cmOrderLinkDirectories.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmOrderLinkDirectories.cxx b/Source/cmOrderLinkDirectories.cxx
index 96ece46..b0b965b 100644
--- a/Source/cmOrderLinkDirectories.cxx
+++ b/Source/cmOrderLinkDirectories.cxx
@@ -258,7 +258,7 @@ void cmOrderLinkDirectories::SetLinkInformation(cmTarget& target,
continue;
}
if (lib->second == cmTarget::OPTIMIZED &&
- linktype != cmTarget::OPTIMIZED)
+ (linktype != cmTarget::OPTIMIZED && linktype != cmTarget::GENERAL))
{
continue;
}