From 040f503d83321ddfdf3f401f538dec721fe03842 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 27 Mar 2020 08:17:51 -0400 Subject: FindBoost: Clarify logic selecting Boost_LIB_PREFIX Also add a comment explaining its purpose. --- Modules/FindBoost.cmake | 11 ++++++++--- 1 file 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 ) -- cgit v0.12