From 1e63a0a86b427dbb906a5c07f95804b5ae14c060 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 3 Nov 2021 02:41:07 +0200 Subject: [PATCH] Enable Boost::dynamic_linking target as well --- BoostConfig.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BoostConfig.cmake b/BoostConfig.cmake index dad556b..c762b32 100644 --- a/BoostConfig.cmake +++ b/BoostConfig.cmake @@ -272,14 +272,15 @@ if(NOT TARGET Boost::boost) add_library(Boost::boost INTERFACE IMPORTED) set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_LINK_LIBRARIES Boost::headers) - add_library(Boost::disable_autolinking INTERFACE IMPORTED) add_library(Boost::diagnostic_definitions INTERFACE IMPORTED) + add_library(Boost::disable_autolinking INTERFACE IMPORTED) add_library(Boost::dynamic_linking INTERFACE IMPORTED) if(WIN32) - set_property(TARGET Boost::disable_autolinking PROPERTY INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_NO_LIB") set_property(TARGET Boost::diagnostic_definitions PROPERTY INTERFACE_COMPILE_DEFINITIONS "BOOST_LIB_DIAGNOSTIC") + set_property(TARGET Boost::disable_autolinking PROPERTY INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_NO_LIB") + set_property(TARGET Boost::dynamic_linking PROPERTY INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_DYN_LINK") endif()