Skip to content

GLOB in CMake #376

@JBludau

Description

@JBludau

We should get rid of the GLOB here

file(GLOB SOURCE_FILES "*.cpp")

Reason is, that this will not rerun if files change. For that we would need to add CONFIGURE_DEPENDS. But even better would be if we inject the source names directly. This allows CMake to accurately track which files have changed and only update/compile/install based on that.
CONFIGURE_DEPENDS does also solve this but forces CMake to reconfigure the whole directory every single time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions