From 2b76a33413166f388349dee8ab734438581a4200 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 4 May 2024 15:41:01 -0400 Subject: [PATCH] Update raylib in the branch --- CMakeLists.txt | 2 +- examples/CMakeLists.txt | 2 +- include/raylib.hpp | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 619e3bc..3857c06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.11) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") project (raylib_cpp - VERSION 5.0.1 + VERSION 5.1.0 DESCRIPTION "raylib-cpp C++ Object Oriented Wrapper for raylib" HOMEPAGE_URL "https://github.com/robloach/raylib-cpp" LANGUAGES C CXX diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index b409356..ff32fb2 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -15,7 +15,7 @@ if (NOT raylib_FOUND) FetchContent_Declare( raylib GIT_REPOSITORY https://github.com/raysan5/raylib.git - GIT_TAG ae50bfa2cc569c0f8d5bc4315d39db64005b1b08 + GIT_TAG f1007554a0a8145060797c0aa8169bdaf2c1c6b8 GIT_SHALLOW 1 ) FetchContent_GetProperties(raylib) diff --git a/include/raylib.hpp b/include/raylib.hpp index 1fd071c..d219f2c 100644 --- a/include/raylib.hpp +++ b/include/raylib.hpp @@ -24,6 +24,10 @@ extern "C" { #error "raylib-cpp targets raylib 5. Use the `next` branch for the next version of raylib." #endif +#if RAYLIB_VERSION_MINOR < 1 +#error "raylib-cpp targets raylib 5.1 or higher." +#endif + #ifdef __cplusplus } #endif