Skip to content

CMake Feature Request: Recompile *_driver.F90 when new TEST_SOURCES added #380

Description

@jphill4

Another observation from my test suite migration: When a new .pf file is added to TEST_SOURCES for add_pfunit_ctest, the file gets processed and the *.inc file gets updated, but a re-compilation of the test program is not triggered. It would be nice for this re-build to happen automatically. One of these approaches should work:

https://cmake.org/cmake/help/latest/command/add_dependencies.html
https://stackoverflow.com/questions/40914497/why-doesnt-cmake-detect-dependency-on-my-generated-file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions