From: Stephen Seo Date: Tue, 28 Jan 2025 05:26:21 +0000 (+0900) Subject: CMakeLists.txt: Replace IS_EXECUTABLE with EXISTS X-Git-Tag: 1.13~2 X-Git-Url: https://git.seodisparate.com/stephenseo/LD55?a=commitdiff_plain;h=cd1363dca042c9a7342e3b39114a0f81b7b17220;p=SimpleArchiver CMakeLists.txt: Replace IS_EXECUTABLE with EXISTS IS_EXECUTABLE does not exist in older versions of cmake. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9886214..4beecc3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ set_source_files_properties(src/archiver.c COMPILE_FLAGS -Wno-format-nonliteral ) -if(IS_EXECUTABLE /usr/bin/git) +if(EXISTS /usr/bin/git) execute_process(COMMAND /usr/bin/git describe --long --tags WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" OUTPUT_VARIABLE SIMPLE_ARCHIVER_GIT_VER