From b49c36500513a50618d01ec4e6c429b60d03bb41 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 19 Oct 2025 20:33:18 +0300 Subject: [PATCH] Rename __boost_install_update_extra_sources to __boost_install_update_sources; it can in theory be used for `include/` as well, although we don't have a use case for this yet --- include/BoostInstall.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/BoostInstall.cmake b/include/BoostInstall.cmake index 6b2208f..ca0997c 100644 --- a/include/BoostInstall.cmake +++ b/include/BoostInstall.cmake @@ -215,13 +215,14 @@ function(__boost_install_update_include_directory lib incdir prop) endfunction() -function(__boost_install_update_extra_sources lib extradir extrainstalldir) +function(__boost_install_update_sources lib srcdir instdir) if(NOT TARGET "${lib}" OR NOT lib MATCHES "^boost_(.*)$") return() endif() get_target_property(sources ${lib} INTERFACE_SOURCES) + if(NOT sources) return() endif() @@ -230,7 +231,7 @@ function(__boost_install_update_extra_sources lib extradir extrainstalldir) get_filename_component(dir "${src}" DIRECTORY) - if("${dir}" STREQUAL "${extradir}") + if("${dir}" STREQUAL "${srcdir}") get_target_property(modified_sources ${lib} INTERFACE_SOURCES) list(REMOVE_ITEM modified_sources "${src}") @@ -238,7 +239,7 @@ function(__boost_install_update_extra_sources lib extradir extrainstalldir) # Add this source file to the INTERFACE_SOURCES target property, prefixed properly. get_filename_component(srcname "${src}" NAME) - target_sources("${lib}" INTERFACE $ $) + target_sources("${lib}" INTERFACE $ $) endif() @@ -358,7 +359,7 @@ function(boost_install_target) endif() if(__EXTRA_DIRECTORY AND __EXTRA_INSTALL_DIRECTORY) - __boost_install_update_extra_sources(${LIB} ${__EXTRA_DIRECTORY} ${__EXTRA_INSTALL_DIRECTORY}) + __boost_install_update_sources(${LIB} ${__EXTRA_DIRECTORY} ${__EXTRA_INSTALL_DIRECTORY}) endif() install(EXPORT ${LIB}-targets DESTINATION "${CONFIG_INSTALL_DIR}" NAMESPACE Boost:: FILE ${LIB}-targets.cmake)