From fccdfa7926260339a66a5590c0246f4c158c5970 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 7 Mar 2024 06:11:46 -0500 Subject: [PATCH] cmake: For SDL build, link the glfw dependency (#3860) --- examples/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index c5fa659ee..a9dc2c88d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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/")