Try to use CMake for git submodules (again*2)
This commit is contained in:
parent
942bd559c3
commit
1fdef3fe86
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue