Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/BoostInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ function(boost_install_target)

install(EXPORT ${LIB}-targets DESTINATION "${CONFIG_INSTALL_DIR}" NAMESPACE Boost:: FILE ${LIB}-targets.cmake)

set_target_properties(${LIB} PROPERTIES _boost_is_installed ON)

set(CONFIG_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/tmpinst/${LIB}-config.cmake")
set(CONFIG_FILE_CONTENTS "# Generated by BoostInstall.cmake for ${LIB}-${__VERSION}\n\n")

Expand Down
5 changes: 5 additions & 0 deletions include/BoostRoot.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ function(__boost_auto_install __boost_lib)

if(TARGET "Boost::${__boost_lib_target}" AND TARGET "boost_${__boost_lib_target}")

get_target_property(is_installed "boost_${__boost_lib_target}" _boost_is_installed)
if(is_installed)
return() # Ignore libraries for which boost_install was already called
endif()

get_target_property(__boost_lib_incdir "boost_${__boost_lib_target}" INTERFACE_INCLUDE_DIRECTORIES)

set(incdir "${BOOST_SUPERPROJECT_SOURCE_DIR}/libs/${__boost_lib}/include")
Expand Down
Loading