Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Fixes #302

@Roy-Fokker  something like this?
  • Loading branch information
RobLoach authored Mar 14, 2024
1 parent 9176e0a commit 1b6eb5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ endif()
# raylib-cpp
find_package(raylib_cpp QUIET)
if (NOT raylib_cpp_FOUND)
set(RAYLIB_CPP_VERSION v5.0.1)
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}
FIND_PACKAGE_ARGS NAMES raylib_cpp
)
FetchContent_MakeAvailable(raylib_cpp)
endif()
Expand Down

0 comments on commit 1b6eb5b

Please sign in to comment.