summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-27 12:17:51 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-27 13:32:47 (GMT)
commit040f503d83321ddfdf3f401f538dec721fe03842 (patch)
tree121f9132f295d1993e1e168cd1686ecfc2476873 /Modules/FindBoost.cmake
parent4b266927c7556f74d11d6f499360d682117e0a60 (diff)
downloadCMake-040f503d83321ddfdf3f401f538dec721fe03842.zip
CMake-040f503d83321ddfdf3f401f538dec721fe03842.tar.gz
CMake-040f503d83321ddfdf3f401f538dec721fe03842.tar.bz2
FindBoost: Clarify logic selecting Boost_LIB_PREFIX
Also add a comment explaining its purpose.
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 3c52466..38d3bfa 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 )