diff --git a/CMakeLists.txt b/CMakeLists.txt index 990a482b..e30b258d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,11 +48,13 @@ FetchContent_Declare( GIT_SHALLOW ON) FetchContent_MakeAvailable(cesiumnative) -FetchContent_Declare(mapget - GIT_REPOSITORY "https://github.com/Klebert-Engineering/mapget" - GIT_TAG "main" - GIT_SHALLOW ON) -FetchContent_MakeAvailable(mapget) +if (NOT TARGET mapget) + FetchContent_Declare(mapget + GIT_REPOSITORY "https://github.com/Klebert-Engineering/mapget" + GIT_TAG "main" + GIT_SHALLOW ON) + FetchContent_MakeAvailable(mapget) +endif() add_subdirectory(libs/core)