From 749e5c284556dca4d5485b726ec4639b4614fed3 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sat, 30 Dec 2023 10:04:32 +0100 Subject: [PATCH] Fix CMake for older versions --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04f36147..f8559861 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ set(PROJECT_REPOSITORY https://github.com/sfztools/sfizz) set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake") # Ensure presence of Git submodules (when not using the source tarball) -if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git") +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git" AND NOT CMAKE_VERSION VERSION_LESS "3.19.0") include(GitSubmoduleCheck) git_submodule_check(external/abseil-cpp) git_submodule_check(external/filesystem)