mirror of
https://gitlab.com/raylibtemplates/rt.git
synced 2026-06-28 03:06:18 -04:00
Update Raylib Version
This commit is contained in:
@@ -5,15 +5,15 @@ project(game C CXX)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# Dependencies
|
||||
set(RAYLIB_VERSION 5.5)
|
||||
find_package(raylib ${RAYLIB_VERSION} QUIET) # QUIET or REQUIRED
|
||||
find_package(raylib QUIET) # QUIET or REQUIRED
|
||||
if(NOT raylib_FOUND) # If there's none, fetch and build raylib
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
raylib
|
||||
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)
|
||||
if(NOT raylib_POPULATED) # Have we downloaded raylib yet?
|
||||
set(FETCHCONTENT_QUIET NO)
|
||||
|
||||
Reference in New Issue
Block a user