Fix CMake for older versions

This commit is contained in:
Paul Fd 2023-12-30 10:04:32 +01:00 committed by Paul Ferrand
parent 49699de043
commit 749e5c2845

View file

@ -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)