Slow cmake glob checks
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- cmake, cpp
- Domain
- build-system, performance
Research direction
Start with CMakeLists.txt around line 26 in Boost.Assert and inspect how CONFIGURE_DEPENDS is applied to globbed files. Reproduce the "Re-checking globbed directories..." delay in a CMake project using Boost through add_subdirectory, then verify that dependency builds no longer incur the costly re-check while normal glob behavior remains correct.
Written by the indexing model from the issue text.
Description
On a cmake project that makes use of boost via add_subdirectory, the "Re-checking globbed directories..." stage at the start of the build will occasionally take several tens of seconds. This traces down to the use of CONFIGURE_DEPENDS on Boost.Assert and other Boost libraries.
https://github.com/boostorg/assert/blob/af15ced8d04907345a0211dab46557e085960eb7/CMakeLists.txt#L26
Consider disabling CONFIGURE_DEPENDS when Boost is used as a dependency, as glob results shouldn't change and re-checking can be costly.
- Dominant language
- C++
- Stars
- 35
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/assert
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·