From 344d529c55ee6ce2acfdf832ae288fbc2f542ef5 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 5 Apr 2024 15:45:17 -0400 Subject: [PATCH] Update CMakeLists.txt to allow changing RAYLIB_CPP_VERSION (#308) --- projects/CMake/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt index 6a53037..f645bdf 100644 --- a/projects/CMake/CMakeLists.txt +++ b/projects/CMake/CMakeLists.txt @@ -17,11 +17,14 @@ endif() # raylib-cpp find_package(raylib_cpp QUIET) if (NOT raylib_cpp_FOUND) + if (NOT DEFINED RAYLIB_CPP_VERSION) + set(RAYLIB_CPP_VERSION v5.0.1) + endif() include(FetchContent) FetchContent_Declare( raylib_cpp GIT_REPOSITORY https://github.com/RobLoach/raylib-cpp.git - GIT_TAG v5.0.1 + GIT_TAG ${RAYLIB_CPP_VERSION} ) FetchContent_MakeAvailable(raylib_cpp) endif()