From 767aa75c253a5cc206c04d7dd20dd257e8c08eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 1 Jan 2023 21:04:03 +0100 Subject: [PATCH] Make git a required build dependency --- stm-firmware/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stm-firmware/CMakeLists.txt b/stm-firmware/CMakeLists.txt index db8fee9..2fdff26 100644 --- a/stm-firmware/CMakeLists.txt +++ b/stm-firmware/CMakeLists.txt @@ -38,9 +38,8 @@ if (GIT_FOUND) ) message("${BoldGreen}Git based version number: ${GIT_DESCRIBE}${ColorReset}") else (GIT_FOUND) - set(GIT_DESCRIBE "v0.0.0-unknown") message("${BoldRed}No git installation found. It is highly recommended using git to generate the version number") - message("Version is set to: ${GIT_DESCRIBE}${ColorReset}") + message(FATAL_ERROR "Git is required") endif (GIT_FOUND) find_program(PATCHELFCRC patchelfcrc)