mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 10:14:04 +00:00
[all] cmake: tell users to clone submodules when they haven't
This gives users a command to run that will automagically fix the submodule situation, and should reduce the amount of support requests.
This commit is contained in:
8
cmake/CheckSubmodule.cmake
Normal file
8
cmake/CheckSubmodule.cmake
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
(NOT EXISTS "${PROJECT_TOP}/repos/cimgui/imgui/.git")
|
||||
))
|
||||
message(FATAL_ERROR "Submodules are not initialized. Run\n\tgit submodule update --init --recursive")
|
||||
endif()
|
Reference in New Issue
Block a user