9 Commits

Author SHA1 Message Date
BartolomeyKant
a24977a3db
Fix cmake helper functions collision (#1065)
* add etl prefix name for cmake helper functions

* remove unused functions from GetGitRevistionDescription
2025-04-30 16:55:57 +01:00
MichaelFeistETC
d3aba6033f
#968 Swap PROJECT_IS_TOP_LEVEL called before project() (#1015) 2025-01-24 17:54:26 +00:00
Pisit Sawangvonganan
c92d970d09
etl: apply code spell check across entire code base (#818)
Utilized a spell checking tool to identify and correct spelling
throughout all files in the code base.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-02-22 19:06:23 +00:00
Flaviu Tamas
e66750de53
Don't warn on tag missing when subproject (#653) (#655)
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.
2023-01-04 09:39:28 +00:00
Robin Mueller
ba1db8b55b
Some CMake handling improvements (#538)
* 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>
2022-05-17 17:08:18 +01:00
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