Skip to content

Commit

Permalink
cmake: Fetch mapget optional
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Dec 15, 2023
1 parent beb571f commit 55b5dc3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 55b5dc3

Please sign in to comment.