Skip to content

Don't check and install bundled Boost headers if CXX_API not required#412

Open
Growl1234 wants to merge 1 commit into
evaleev:masterfrom
Growl1234:master
Open

Don't check and install bundled Boost headers if CXX_API not required#412
Growl1234 wants to merge 1 commit into
evaleev:masterfrom
Growl1234:master

Conversation

@Growl1234
Copy link
Copy Markdown
Contributor

@Growl1234 Growl1234 commented Apr 19, 2026

This is because bundled Boost is only detected when LIBINT2_REQUIRE_CXX_API is enabled:

if (LIBINT2_REQUIRE_CXX_API)
if (NOT TARGET Boost::headers)
find_package(Boost 1.57)
endif()
if (TARGET Boost::headers)
include(int_checkboost)
set(LIBINT_HAS_SYSTEM_BOOST_PREPROCESSOR_VARIADICS 1)
else()
set(LIBINT_HAS_SYSTEM_BOOST_PREPROCESSOR_VARIADICS 0)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/include/libint2)
execute_process(
COMMAND ${CMAKE_COMMAND} -E tar xzf ${PROJECT_SOURCE_DIR}/external/boost.tar.gz
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/include/libint2
RESULT_VARIABLE UNPACK_BOOST_RESULT
OUTPUT_VARIABLE UNPACK_BOOST_OUTPUT
ERROR_VARIABLE UNPACK_BOOST_OUTPUT
)
message(STATUS "Unpacking bundled Boost")
if (NOT UNPACK_BOOST_RESULT EQUAL 0)
message(FATAL_ERROR "Failed to unpack the bundled Boost! The tar command output:\n${UNPACK_BOOST_OUTPUT}")
endif()
endif()
endif()

@Growl1234 Growl1234 changed the title Add bundled Eigen3 as a internal dependency Add bundled Eigen3 as an internal dependency Apr 19, 2026
@Growl1234 Growl1234 changed the title Add bundled Eigen3 as an internal dependency Don't check and install bundled Boost headers if CXX_API not required May 25, 2026
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.

1 participant