Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement conditional compilation -DWITH_MODULEMD=OFF #1521

Merged
merged 4 commits into from
Jul 1, 2024

Commits on Jun 25, 2024

  1. Clean up repo header includes

    kontura committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    34a8f52 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6b26d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d29235 View commit details
    Browse the repository at this point in the history
  4. Implement conditional compilation -DWITH_MODULEMD=OFF

    When WITH_MODULEMD is turned off module sources are not compiled and
    module headers are not installed.
    
    Public API in non-module headers (base.hpp and goal.hpp) is still
    available but throws an exception when used.
    Another option would be to also hide the functions in non-module headers
    but in order to ensure the headers always match the compiled library (so
    they don't depend on the user not defining `WITH_MODULEMD`) they would
    have to be configured via a constant at compile time. For example using
    cmake to `configure_file` turning them into `.in` files.
    kontura committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    a0970be View commit details
    Browse the repository at this point in the history