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

Drop ArchiveVersionInfo #1

Open
hinell opened this issue Sep 8, 2022 · 3 comments
Open

Drop ArchiveVersionInfo #1

hinell opened this issue Sep 8, 2022 · 3 comments

Comments

@hinell
Copy link

hinell commented Sep 8, 2022

# Check for ArchiveVersionInfo within same directory and use that info is available ...
include(ArchiveVersionInfo_${VI_PREFIX} OPTIONAL RESULT_VARIABLE ARCHIVE_VERSION_PRESENT)
if(ARCHIVE_VERSION_PRESENT AND ${VI_PREFIX}_VERSION_SUCCESS)
message(STATUS "Info: Version information from archive file.")
# ... get version info via git otherwise.

In CMake we already have the write_basic_package_version_file(...) function that generates a config file for packages (which are also archives).

See here for more info:

@jahnf
Copy link
Owner

jahnf commented Sep 9, 2022

Thanks, seems to be new in CMake 3.21 - this project needs definitely an update :)

@hinell
Copy link
Author

hinell commented Sep 9, 2022

@jahnf That features has been there for years! 😉

@jahnf
Copy link
Owner

jahnf commented Sep 9, 2022

Ooops okay I'll take everything back 🤷‍♂️🙃

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

No branches or pull requests

2 participants