Repository navigation
Conversation
|
I asked a question about the validity of the reasoning here boostorg/assert#49 (comment) |
|
Thanks for the PR. In this library, though, the glob does nothing on any generator. For the same reason, sehe's concern about clangd and clang-tidy doesn't apply here: compile_commands.json and the CMake file API output are identical with and without this change, and neither lists the library's headers. Also, moving Could you instead remove the |
|
Oh good catch! Submitted a few other PRs in other libraries so I'll double check those.
Yes. Thank you for testing it. |
Property is ultimately unused because no target lists these files. The result is that the files don't show up in any IDE project but consumers of the library pay the GLOB cost anyway.
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.