7
0
mirror of https://gitlab.com/raylibtemplates/rt.git synced 2026-06-28 11:15:21 -04:00

Update Raylib Version

This commit is contained in:
maple
2025-12-20 23:19:17 -06:00
parent 8600517c12
commit 2e78dbd9df

View File

@@ -5,14 +5,14 @@ project(game C CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Dependencies # Dependencies
set(RAYLIB_VERSION 5.5) find_package(raylib QUIET) # QUIET or REQUIRED
find_package(raylib ${RAYLIB_VERSION} QUIET) # QUIET or REQUIRED
if(NOT raylib_FOUND) # If there's none, fetch and build raylib if(NOT raylib_FOUND) # If there's none, fetch and build raylib
include(FetchContent) include(FetchContent)
FetchContent_Declare( FetchContent_Declare(
raylib raylib
DOWNLOAD_EXTRACT_TIMESTAMP OFF DOWNLOAD_EXTRACT_TIMESTAMP OFF
URL https://github.com/raysan5/raylib/archive/refs/tags/${RAYLIB_VERSION}.tar.gz GIT_REPOSITORY https://github.com/raysan5/raylib.git
GIT_TAG master
) )
FetchContent_GetProperties(raylib) FetchContent_GetProperties(raylib)
if(NOT raylib_POPULATED) # Have we downloaded raylib yet? if(NOT raylib_POPULATED) # Have we downloaded raylib yet?