cginternals / cginternals/cmake-init

Add package version file

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
enhancement requires decision
Dominant language
CMake
Stars
941
Forks
115
PR merge metrics
No merged PRs in 30d

Description

Add ability to request minimum version of cmake-init base-projects in `find_package`.
The CMake documentation suggests to generate and deploy a [Package Version File](https://cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html?highlight=project%20version#package-version-file). Besides `template-config.cmake`, projects would than also deploy `template-config-version.cmake` and allow to be included via calls like `find_package(template_foo 2.0 REQUIRED)`.

As far as I can see, there is currently no way for users to check in CMake for versions of cmake-init-based projects, which is quite unfortunate.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.