Files
Minecraft-Community-Edition/cmake/Vendor.cmake
BendedWills 7162c39c47 Logger
2026-03-05 04:50:18 -06:00

16 lines
536 B
CMake

cmake_minimum_required(VERSION 4.0)
include(FetchContent)
# Config
set(FETCHCONTENT_BASE_DIR ${CMAKE_BINARY_DIR}/Vendor)
# Rewrite all github ssh URLs to https
execute_process(
COMMAND git config --global url.https://github.com/.insteadOf git@github.com:
)
FetchContent_Declare(EASTL GIT_REPOSITORY https://github.com/electronicarts/EASTL.git)
FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git)
set(CMAKE_POLICY_VERSION_MINIMUM 3.5) # EACore uses an old version
FetchContent_MakeAvailable(EASTL SFML)