Repository navigation
Conversation
|
An automated preview of the documentation is available at https://1217.json.prtest2.cppalliance.org/libs/json/doc/html/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-10-31 22:14:07 UTC |
|
GCOVR code coverage report https://1217.json.prtest2.cppalliance.org/gcovr/index.html Build time: 2026-10-31 22:43:11 UTC |
|
|
|
How much time does globbing really take for Json? I checked CI logs and it's less than a second for our Windows jobs. |
I don't know, I didn't measure this library specifically. I found this problem with 6 individual libraries that were cumulatively adding a multi second stall to my build and changed them all at once. See my corresponding post to the mailing list: |
|
I asked a question about the validity of the reasoning here boostorg/assert#49 (comment) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1217 +/- ##
========================================
Coverage 93.97% 93.97%
========================================
Files 85 85
Lines 8970 8970
========================================
Hits 8430 8430
Misses 540 540 Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Allows projects building boost via add_subdirectory to avoid the cost of GLOB on every build.
|
|
grisumbras
left a comment
There was a problem hiding this comment.
Please add set(BOOST_CONFIGURE_DEPENDS CONFIGURE_DEPENDS) around line 46. This is to ensure that reglobbing still happens when JSON is the main project (which is how I presume most JSON contributors who use CMake set it up).
|
|
||
| source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/include/boost PREFIX "" FILES ${BOOST_JSON_HEADERS}) | ||
|
|
||
| set(BOOST_JSON_SOURCES src/src.cpp) |
There was a problem hiding this comment.
Please put that line back to where it was.


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.