Skip to content

Replace CONFIGURE_DEPENDS with BOOST_CONFIGURE_DEPENDS - #1015

Open
cdglove wants to merge 2 commits into
boostorg:developfrom
cdglove:develop
Open

cdglove wants to merge 2 commits into
boostorg:developfrom
cdglove:develop

Conversation

@cdglove

@cdglove cdglove commented Oct 30, 2026

Copy link
Copy Markdown

When file(GLOB ... CONFIGURE_DEPENDS) or file(GLOB_RECURSE ...
CONFIGURE_DEPENDS) is evaluated, CMake's make style generators create a
verification script (VerifyGlobs.cmake) that gets run on every build,
outputting "Re-checking globbed directories....". This can cause a
a noticeable delay on incremental builds.

When file(GLOB ... CONFIGURE_DEPENDS) or file(GLOB_RECURSE ...
CONFIGURE_DEPENDS) is evaluated, CMake's make style generators create a
verification script (VerifyGlobs.cmake) that gets run on every build,
outputting "Re-checking globbed directories....". This can cause a
a noticeable delay on incremental builds.

Since the headers are only needed for IDE project navigation, limiting
this check to that use case is a good compromise.
@cppalliance-bot

cppalliance-bot commented Oct 30, 2026 •

Copy link
Copy Markdown

GCOVR code coverage report https://1015.url.prtest2.cppalliance.org/gcovr/index.html
LCOV code coverage report https://1015.url.prtest2.cppalliance.org/genhtml/index.html
Coverage Diff Report https://1015.url.prtest2.cppalliance.org/diff-report/index.html

Build time: 2026-10-31 22:24:18 UTC

@cppalliance-bot

cppalliance-bot commented Oct 30, 2026 •

Copy link
Copy Markdown

An automated preview of the documentation is available at https://1015.url.prtest2.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-10-31 22:19:39 UTC

@sehe

sehe commented Oct 30, 2026

Copy link
Copy Markdown

I asked a question about the validity of the reasoning here boostorg/assert#49 (comment)

Allows projects building boost via add_subdirectory to avoid the cost
of GLOB on every build.
@cdglove cdglove changed the title Avoid GLOBing in CMake files Replace CONFIGURE_DEPENDS with BOOST_CONFIGURE_DEPENDS Oct 31, 2026
@alandefreitas

Copy link
Copy Markdown
Member

As a heads-up, I've been following the discussion on the mailing list, and I'm planning to follow whatever conclusion people reach there.

@cdglove

cdglove commented Nov 1, 2026

Copy link
Copy Markdown
Author

Decision was taken to leave the GLOB but use BOOST_CONFIGURE_DEPENDS instead of CONFIGURE_DEPENDS.

For this particular library I've left the included change that lists the actual sources (as opposed to headers) instead of GLOBing them because I feel that's the right thing to do, but I'm happy to also just replace that with BOOST_CONFIGURE_DEPENDS if that's your preference.

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.

4 participants