Try to use CMake for git submodules (again*2)

This commit is contained in:
Patricia Aas 2021-06-22 12:13:50 +02:00 committed by Patricia Aas
parent 942bd559c3
commit 1fdef3fe86
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.17)
find_package(Git QUIET)
if (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
if (GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
# Update submodules as needed
option(GIT_SUBMODULE "Check submodules during build" ON)
if (GIT_SUBMODULE)