From 8aa7116e5f7f445c18b55f2f2bda0ae7a4f28e2a Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Wed, 1 May 2024 14:50:38 -0400 Subject: [PATCH] Make sure the git command is run from the source dir --- cmake/Conky.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Conky.cmake b/cmake/Conky.cmake index 1af6471c..2f560668 100644 --- a/cmake/Conky.cmake +++ b/cmake/Conky.cmake @@ -177,6 +177,7 @@ execute_process(COMMAND ${APP_UNAME} -sm OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND ${APP_GIT} rev-parse --short HEAD + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} RESULT_VARIABLE RETVAL OUTPUT_VARIABLE GIT_SHORT_SHA OUTPUT_STRIP_TRAILING_WHITESPACE)