mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
cmake: For SDL build, link the glfw dependency (#3860)
This commit is contained in:
@@ -145,5 +145,11 @@ foreach (example_source ${example_sources})
|
||||
endif ()
|
||||
endforeach ()
|
||||
|
||||
# For SDL, have rlgl_standalone link the glfw dependency.
|
||||
if ("${PLATFORM}" STREQUAL "SDL")
|
||||
find_package(glfw3 3.3 REQUIRED)
|
||||
target_link_libraries(rlgl_standalone glfw)
|
||||
endif()
|
||||
|
||||
# Copy all of the resource files to the destination
|
||||
file(COPY ${example_resources} DESTINATION "resources/")
|
||||
|
Reference in New Issue
Block a user