From b71cc96185528f600432279bf5fc16b62fa356dd Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 25 Mar 2026 00:33:23 +0100 Subject: [PATCH] build(cmake): find and set GIT_EXECUTABLE Ensures git gets found. Without this change it would only be found if it happened to live in /usr/bin. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90997c2..310f96b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -333,6 +333,7 @@ find_package(Filesystem REQUIRED) target_link_libraries(infinisim PRIVATE std::filesystem) # Get the latest abbreviated commit hash of the working branch +find_package(Git REQUIRED) execute_process( COMMAND ${GIT_EXECUTABLE} log -1 --format=%h WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}