Skip to content

EXTRA_MODULES and EXTRA_INCLUDE_GMTSUPPL are not documented in ConfigUserAdvanced.cmake #2690

Closed

Description

@seisman

These two cmake variables are used in src/CMakeLists.txt, but not listed in ConfigUserAdvanced.cmake.

Activity

  1. PaulWessel commented on Feb 7, 2020

    @PaulWessel
    Contributor

    EXTRA_MODULES is for developers to add new modules for testing without adding them to the main list of core modules.
    EXTRA_INCLUDE_GMTSUPPL is for developers to test out new supplements without adding them to the main list.

  2. seisman commented on Feb 7, 2020

    @seisman
    MemberAuthor

    Add them to ConfigUserAdvanced.cmake?

  3. seisman commented on Feb 7, 2020

    @seisman
    MemberAuthor

    It’s better to rename EXTRA_INCLUDE_GMTSUPPL to EXTRA_MODULE_SUPPL to have consistent names?

  4. PaulWessel commented on Feb 7, 2020

    @PaulWessel
    Contributor

    Yes to both.

  5. joa-quim commented on Feb 7, 2020

    @joa-quim
    Member
  6. PaulWessel commented on Feb 7, 2020

    @PaulWessel
    Contributor

    I think works on macOS/Linux only without running gmt_make_module_src.sh.

    Speaking of which, ideally cmake should figure out that if any of the core module files are younger than gmt_core_module.[ch] then it should run gmt_make_module_src.sh core, and likewise if any supplemental modules change it should run gmt_make_module_src.sh supplements. Or if not actually running them, warn us. The problem is that those KEYS change very infrequently, but when they do we need to remember to run those commands.

  7. joa-quim commented on Feb 8, 2020

    @joa-quim
    Member

    It works in the sense that it builds but when try gmt newmodule the newmodule is not known.

    Everytime I change a KEY, I update the gmt_core_module.c It was long ago but the batch script always gave me troubles on Win.

  8. seisman commented on Feb 8, 2020

    @seisman
    MemberAuthor

    Speaking of which, ideally cmake should figure out that if any of the core module files are younger than gmt_core_module.[ch] then it should run gmt_make_module_src.sh core, and likewise if any supplemental modules change it should run gmt_make_module_src.sh supplements. Or if not actually running them, warn us. The problem is that those KEYS change very infrequently, but when they do we need to remember to run those commands.

    I think we can do it in CI. For each CI job, we can run these scripts

    gmt_make_PSL_strings.sh     gmt_make_module_src.sh
    gmt_make_enum_dicts.sh      gmt_make_pattern_include.sh
    

    If any files are changed, then the CI job fails, so that we know we need to manually run these scripts.

  9. PaulWessel commented on Feb 8, 2020

    @PaulWessel
    Contributor

    How does the CI job fail if gmt_make_module_src.sh core creates a modified gmt_core_module.c file? The changes to the KEYS only affect external API use.

  10. seisman commented on Feb 8, 2020

    @seisman
    MemberAuthor

    I mean adding a new CI job. If gmt_core_module.c is modified, then the CI job reports an error to warn us.

  11. PaulWessel commented on Feb 8, 2020

    @PaulWessel
    Contributor

    OK, I see. It create the latest .ch files and diffs with what is in the repo and if different then we are told to run it and commit.

  12. seisman commented on Feb 8, 2020

    @seisman
    MemberAuthor

    Yes, exactly.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions