Skip to content

Commit 344d529

Browse files
authored
Update CMakeLists.txt to allow changing RAYLIB_CPP_VERSION (#308)
1 parent 1d43610 commit 344d529

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/CMake/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ endif()
1717
# raylib-cpp
1818
find_package(raylib_cpp QUIET)
1919
if (NOT raylib_cpp_FOUND)
20+
if (NOT DEFINED RAYLIB_CPP_VERSION)
21+
set(RAYLIB_CPP_VERSION v5.0.1)
22+
endif()
2023
include(FetchContent)
2124
FetchContent_Declare(
2225
raylib_cpp
2326
GIT_REPOSITORY https://github.com/RobLoach/raylib-cpp.git
24-
GIT_TAG v5.0.1
27+
GIT_TAG ${RAYLIB_CPP_VERSION}
2528
)
2629
FetchContent_MakeAvailable(raylib_cpp)
2730
endif()

0 commit comments

Comments
 (0)