added check for GNUC >= 11 for -Wstringop-overread ignore pragma since it isn't introduced until gcc/g++-11
Co-authored-by: Josh <joshua.martens@magna.com>
Different solution than proposed in the issue, since that proposed
solution would given unexpected results when an intermediate
(untagged) commit is checked out.
This change simply skips warning about a missing git version when this
is a subproject, and uses the original version calculation logic.
I've also renamed `determine_version` to `determine_version_with_file`.
I'd originally done this in an intermediate version of this PR, but I
think that keeping the renaming is clearer code.
* Some CMake handling improvements
- Set version from version.txt file if git retrieval fails
- Add FORCE flag to ETL_VERSION CACHE entry setting. The user
should not have any reason to set this entry from the command line
* correction for cache entry text
* a little bit more context information
* message prefix for info printout
Co-authored-by: Robin Mueller <Robin Mueller>
* 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
* 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