Skip to content

Commit b71cc96

Browse files
committed
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.
1 parent f56f25a commit b71cc96

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ find_package(Filesystem REQUIRED)
333333
target_link_libraries(infinisim PRIVATE std::filesystem)
334334

335335
# Get the latest abbreviated commit hash of the working branch
336+
find_package(Git REQUIRED)
336337
execute_process(
337338
COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
338339
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}

0 commit comments

Comments
 (0)