2021-08-18 22:02:33 +00:00
|
|
|
if (EXISTS "${PROJECT_TOP}/.git" AND (
|
|
|
|
(NOT EXISTS "${PROJECT_TOP}/repos/cimgui/.git") OR
|
|
|
|
(NOT EXISTS "${PROJECT_TOP}/repos/LGMP/.git") OR
|
|
|
|
(NOT EXISTS "${PROJECT_TOP}/repos/PureSpice/.git") OR
|
2022-02-08 04:52:21 +00:00
|
|
|
(NOT EXISTS "${PROJECT_TOP}/repos/cimgui/imgui/.git") OR
|
2022-10-27 05:29:21 +00:00
|
|
|
(NOT EXISTS "${PROJECT_TOP}/repos/wayland-protocols/.git") OR
|
|
|
|
(NOT EXISTS "${PROJECT_TOP}/repos/nanosvg/.git")
|
2021-08-18 22:02:33 +00:00
|
|
|
))
|
|
|
|
message(FATAL_ERROR "Submodules are not initialized. Run\n\tgit submodule update --init --recursive")
|
|
|
|
endif()
|
2021-11-14 23:59:41 +00:00
|
|
|
|
|
|
|
if (EXISTS "${PROJECT_TOP}/.git" AND NOT DEFINED DEVELOPER)
|
|
|
|
execute_process(
|
|
|
|
COMMAND git submodule summary
|
|
|
|
WORKING_DIRECTORY "${PROJECT_TOP}"
|
|
|
|
OUTPUT_VARIABLE SUBMODULE_SUMMARY
|
|
|
|
)
|
|
|
|
if (NOT "${SUBMODULE_SUMMARY}" STREQUAL "")
|
|
|
|
message(FATAL_ERROR "Wrong submodule version checked out. Run\n\tgit submodule update --init --recursive")
|
|
|
|
endif()
|
|
|
|
endif()
|