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

feature: allow additional arguments after shorthand syntax #546

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Jun 16, 2024

  1. feature: allow additional arguments after shorthand syntax

    This allows to combine the shorthand syntax with additional arguments:
    ```
    CPMAddPackage("gh:nlohmann/[email protected]" OPTIONS "JSON_BUildTests OFF")
    ```
    
    This is much shorter than the longer syntax way of writing:
    ```
    CPMAddPackage(
      NAME nlohmann_json
      VERSION 3.9.1
      GITHUB_REPOSITORY nlohmann/json
      OPTIONS
        "JSON_BuildTests OFF"
    )
    ```
    SGSSGene committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    0791b28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5821d77 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7fbb9cd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    668fb00 View commit details
    Browse the repository at this point in the history