Skip to content

Conversation

@ClausKlein
Copy link

with boost/any and boost/type_info there are at leaset 2 libs preparing CXX_MODULES

This patch would enable to install it too

@ClausKlein ClausKlein force-pushed the feature/install-file_set branch from bd832ca to 4dc5912 Compare December 13, 2025 20:26
string(APPEND CONFIG_INSTALL_DIR "-static")
endif()

if(NOT CMAKE_VERSION VERSION_LESS 3.28)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would suggest VERSION_GREATER_EQUAL rather than inverted logic.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got plans for this? Leave it out?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found a better solution

if(INTERFACE_CXX_MODULE_SETS)
boost_message(DEBUG "boost_install_target: '${__TARGET}' has INTERFACE_CXX_MODULE_SETS=${INTERFACE_CXX_MODULE_SETS}")
set(__INSTALL_CXX_MODULES FILE_SET ${INTERFACE_CXX_MODULE_SETS} DESTINATION ${CONFIG_INSTALL_DIR})
set(__INSTALL_CXX_MODULES_BMI CXX_MODULES_BMI DESTINATION ${CONFIG_INSTALL_DIR}/bmi-${CMAKE_CXX_COMPILER_ID}_$<CONFIG>)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need to be installing these. From what I read, it's not a recommended practice to do so.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants