diff options
| author | V10lator <v10lator@myway.de> | 2025-08-07 19:24:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 19:24:49 +0200 |
| commit | 5e8ee8682df353fc37e08040f9c0f5a3a96393b3 (patch) | |
| tree | dbf19416fd6db502a99ca35b76cfaba6a5e5b0c3 | |
| parent | 57dcefb20693b32ce59d6c9019f33c666c1034db (diff) | |
Fix spaghetti version in Docker (#530)
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 006d8b2b2..b86e36ec2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,12 @@ set(NATO_PHONETIC_ALPHABET ) execute_process( + COMMAND git config --global --add safe.directory ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + OUTPUT_QUIET +) + +execute_process( COMMAND git describe --tags WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE PROJECT_VERSION |
