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

Declare and export version #149

Merged
merged 4 commits into from
Mar 3, 2023
Merged

Declare and export version #149

merged 4 commits into from
Mar 3, 2023

Conversation

dvzrv
Copy link
Contributor

@dvzrv dvzrv commented Jun 10, 2022

This declares the project version in CMakeLists.txt and exports a ghc_filesystem-config-version.cmake file so that consumers of ghc_filesystem may rely on it.

Fixes #148

CMakeLists.txt:
Declare the project's version in the cmake project() call so that it may
be exported to the project's cmake integration (used by other projects).
CMakeLists.txt:
Write a ghc_filesystem-config-version.cmake file and install it, so that
other projects may rely on the exact version of ghc_filesystem.
The compatibility mode implies, that any version of ghc_filesystem with
the same major version is feature compatible.
@gulrak gulrak added this to the v1.5.14 milestone Jun 15, 2022
The projects compatibility rule is that minor changes can be api changes, so I changed it to SameMinorVersion.
As the master version is on that number it avoids confusion.
@gulrak gulrak merged commit e6b34e2 into gulrak:master Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The CMake build definition doesn't contain a version
2 participants