From b9ba864924ef3b45024c0b2a9e0635a97eca5819 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 7 Mar 2024 12:46:17 -0500 Subject: [PATCH] cmake: For SDL, disable rlgl_standalone --- examples/CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index a9dc2c88d2b4..f10a4ecd4662 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -113,6 +113,9 @@ elseif ("${PLATFORM}" STREQUAL "DRM") list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c) list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/raylib_opengl_interop.c) +elseif ("${PLATFORM}" STREQUAL "SDL") + list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c) + endif () include_directories(BEFORE SYSTEM others/external/include) @@ -145,11 +148,5 @@ 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/")