Skip to content

Commit

Permalink
Make Hunter auto-update itself
Browse files Browse the repository at this point in the history
  • Loading branch information
balintkissdev committed Mar 3, 2022
1 parent fac11ac commit a9d2713
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 547 deletions.
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)

include("cmake/modules/HunterGate.cmake")
HunterGate(
URL "https://github.com/cpp-pm/hunter/archive/v0.23.296.tar.gz"
SHA1 "232f5022ee1d45955a7e8d3e1720f31bac1bb534"
)
set(HUNTER_PACKAGES SDL2)

include(FetchContent)
FetchContent_Declare(SetupHunter GIT_REPOSITORY https://github.com/cpp-pm/gate)
FetchContent_MakeAvailable(SetupHunter)

set(PROJECT_NAME Raycaster)
project(${PROJECT_NAME} LANGUAGES CXX)
Expand Down Expand Up @@ -74,7 +74,6 @@ if(EMSCRIPTEN)
--shell-file "${PROJECT_SOURCE_DIR}/src/shell_minimal.html"
)
else()
hunter_add_package(SDL2)
find_package(SDL2 CONFIG REQUIRED)

# Hunter SDL2 package uses static linking
Expand Down
Loading

0 comments on commit a9d2713

Please sign in to comment.