summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-30 17:24:05 +0000
committerKitware Robot <kwrobot@kitware.com>2020-03-30 13:24:38 -0400
commite20146b429afb12950a20adef83c73d36a74e558 (patch)
treeaaba1996a044440234612760d0e2c0bb25094ae6 /Modules
parent026083f97b0898fedf5c36ffdf80b37ec9bc185f (diff)
parent040f503d83321ddfdf3f401f538dec721fe03842 (diff)
downloadcmake-e20146b429afb12950a20adef83c73d36a74e558.tar.gz
Merge topic 'FindBoost-lib-prefix-clarify'
040f503d83 FindBoost: Clarify logic selecting Boost_LIB_PREFIX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4537
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 3c52466736..38d3bfabb9 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -1646,10 +1646,15 @@ endif()
# Prefix initialization
# ------------------------------------------------------------------------
-set(Boost_LIB_PREFIX "")
-if ( (GHSMULTI AND Boost_USE_STATIC_LIBS) OR
- (WIN32 AND Boost_USE_STATIC_LIBS AND NOT CYGWIN) )
+# Boost's static libraries use a "lib" prefix on DLL platforms
+# to distinguish them from the DLL import libraries.
+if (Boost_USE_STATIC_LIBS AND (
+ (WIN32 AND NOT CYGWIN)
+ OR GHSMULTI
+ ))
set(Boost_LIB_PREFIX "lib")
+else()
+ set(Boost_LIB_PREFIX "")
endif()
if ( NOT Boost_NAMESPACE )