4 Commits

Author SHA1 Message Date
valentink-eroad
733b50e9ae
CMake: add a flag to enable version lookup outside the root folder (#533)
Add ARGN to determine_version_with_git() parameters list to allow
specifying the optional ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR flag
2022-04-14 10:15:40 +02:00
Robin Mueller
3d4709152d
Minor cmake version handling and doc fix (#532)
* Minor cmake version handling and doc fix

- Use '.' instead of '-' to detect valid version
- Minor doc fix

* make instructions a bit more cross-platform

Co-authored-by: Robin Mueller <Robin Mueller>
2022-04-12 09:35:00 +02:00
Robin Mueller
39156c918b Extended CMake installation handling (#523)
* updated the version handling

- Introduces a new version.txt file
- This file is parsed by CMake to determine the current version

* assign version in project call

* use version variable

* Meson update

1. Minor fix for GCC build
2. Use external version file which can be used by CMake as well

* get version from git tag now

* ci/cd broke..

* maybe this solves the error

* updated workflow files

* one last test

* remove git describe call

* extended CMake installation handling

* only write version file if possible

* read version.txt as fallback

* missing version.txt arg
2022-04-08 09:37:21 +02:00
Robin Mueller
fbffca3b4c Update cmake & meson version handling (#522)
* updated the version handling

- Introduces a new version.txt file
- This file is parsed by CMake to determine the current version

* assign version in project call

* use version variable

* Meson update

1. Minor fix for GCC build
2. Use external version file which can be used by CMake as well

* get version from git tag now

* ci/cd broke..

* maybe this solves the error

* updated workflow files

* one last test

* remove git describe call
2022-04-08 09:37:21 +02:00