mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Handle missing git submodules automatically
This commit is contained in:
parent
9def76aa08
commit
d53a564c98
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@ find_library (LMDB_LIBRARY NAMES lmdb PATHS "$ENV{LMDB_DIR}/lib" )
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(LMDB DEFAULT_MSG LMDB_INCLUDE_DIR LMDB_LIBRARY)
|
find_package_handle_standard_args(LMDB DEFAULT_MSG LMDB_INCLUDE_DIR LMDB_LIBRARY)
|
||||||
|
|
||||||
|
if (NOT EXISTS "${CMAKE_SOURCE_DIR}/libs/lmdbxx/.git" )
|
||||||
|
message(WARNING "The git submodules are not available.")
|
||||||
|
message(STATUS "Running git submodule update --init --recursive ...")
|
||||||
|
execute_process(COMMAND git submodule update --init --recursive)
|
||||||
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Discover Qt dependencies.
|
# Discover Qt dependencies.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue