Skip to content

Slow cmake glob checks #46

@K-ballo

Description

@K-ballo

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.

file(GLOB_RECURSE headers CONFIGURE_DEPENDS include/*.hpp)

Consider disabling CONFIGURE_DEPENDS when Boost is used as a dependency, as glob results shouldn't change and re-checking can be costly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions