From 8695aa49a5f5d62782217d2380b037d18e7a7460 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 8 Feb 2023 23:06:00 -0800 Subject: Check for the existence of the file that's depended on --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c37fe0b6..92cc138a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1206,7 +1206,7 @@ set(BACKENDS "${BACKENDS} Null") find_package(Git) -if(ALSOFT_UPDATE_BUILD_VERSION AND GIT_FOUND AND EXISTS "${OpenAL_SOURCE_DIR}/.git") +if(ALSOFT_UPDATE_BUILD_VERSION AND GIT_FOUND AND EXISTS "${OpenAL_SOURCE_DIR}/.git/index") # Get the current working branch and its latest abbreviated commit hash add_custom_command(OUTPUT "${OpenAL_BINARY_DIR}/version_witness.txt" BYPRODUCTS "${OpenAL_BINARY_DIR}/version.h" -- cgit v1.2.3