From 3c3f08c4162bda19ebab4b86d3a25692bc647df3 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 24 Jun 2022 09:50:24 +0100 Subject: Fix CMake build on Raspberry Pi OS Bullseye (#2548) --- examples/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 6ade9686..e2ef8742 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -106,6 +106,11 @@ elseif (${PLATFORM} MATCHES "Web") # does not generate HTML+JS+WASM files, only a non-working # and fat HTML string(REPLACE "-rdynamic" "" CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS}") + +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) + endif () include_directories(BEFORE SYSTEM others/external/include) -- cgit v1.2.3