Allow usage of mirrors for all dependencies

This commit is contained in:
2023-10-29 19:02:11 +01:00
parent a6b31d69be
commit 45cb095561
17 changed files with 111 additions and 24 deletions

View File

@@ -1,11 +1,15 @@
include(FetchContent)
if(NOT DEFINED IMGUI_REPO)
set(IMGUI_REPO https://github.com/ocornut/imgui.git)
endif ()
project(imgui_internal VERSION 1.0 LANGUAGES C CXX)
set(IMGUI_SRC_DIR ${CMAKE_BINARY_DIR}/3rdParty/imgui/imgui-src)
FetchContent_Populate(imgui
GIT_REPOSITORY https://github.com/ocornut/imgui.git
GIT_REPOSITORY ${IMGUI_REPO}
GIT_SHALLOW TRUE
GIT_TAG v1.90-docking
SOURCE_DIR ${IMGUI_SRC_DIR}