Skip to content

Commit

Permalink
cmake: Call conan for mapget
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Mar 8, 2024
1 parent 578f0bf commit 41c4feb
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ FetchContent_Declare(
FetchContent_MakeAvailable(cesiumnative)

if (NOT TARGET mapget)
FetchContent_Declare(mapget
GIT_REPOSITORY "https://github.com/Klebert-Engineering/mapget"
GIT_TAG "main"
GIT_SHALLOW ON)
if (MAPGET_DIR)
FetchContent_Declare(mapget
SOURCE_DIR "${MAPGET_DIR}"
PATCH_COMMAND conan install "${MAPGET_DIR}" -of "${CMAKE_BINARY_DIR}" --build=missing)
else()
FetchContent_Declare(mapget
GIT_REPOSITORY "https://github.com/Klebert-Engineering/mapget"
GIT_TAG "main"
GIT_SHALLOW ON
PATCH_COMMAND conan install "${MAPGET_DIR}" -of "${CMAKE_BINARY_DIR}" --build=missing)
endif()
FetchContent_MakeAvailable(mapget)
endif()

Expand Down

0 comments on commit 41c4feb

Please sign in to comment.