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

Allow users to define required version in cmake #812

Open
rolflussi opened this issue Oct 10, 2024 · 1 comment
Open

Allow users to define required version in cmake #812

rolflussi opened this issue Oct 10, 2024 · 1 comment
Labels
proposal Enhancement idea or proposal

Comments

@rolflussi
Copy link
Contributor

Proposed change

Would it be possible to provide a cnats-config-version.cmake file to allow any cmake based project to define the required version of this library within the find_package command?

Use case

Any cmake project can define the required version in its CMakeLists.txt file like this:

find_package(cnats 3.9 REQUIRED)

Contribution

I already have a first implementation on a fork, so I would be happy to open a pull request if you are interested.

@rolflussi rolflussi added the proposal Enhancement idea or proposal label Oct 10, 2024
@levb
Copy link
Collaborator

levb commented Oct 10, 2024

@rolflussi please feel free to open a PR on this! Will be much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

2 participants