summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorChristian W. Zuckschwerdt <[email protected]>2024-02-27 13:08:16 +0100
committerGitHub <[email protected]>2024-02-27 13:08:16 +0100
commit074fbb02647a08ad62b62dbecb76551648a5e407 (patch)
tree3a2a85f1140e5e15eb79c40000fee6bb243272c0 /cmake
parent1fc4f4ac9c539a963d72d3ee0cf2bc6ce72e5b56 (diff)
downloadraylib-074fbb02647a08ad62b62dbecb76551648a5e407.tar.gz
raylib-074fbb02647a08ad62b62dbecb76551648a5e407.zip
Fix DRM cross-compile without sysroot (#3839)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/LibraryConfigurations.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake
index 18b4f196..23a7ec2f 100644
--- a/cmake/LibraryConfigurations.cmake
+++ b/cmake/LibraryConfigurations.cmake
@@ -43,7 +43,7 @@ if (${PLATFORM} MATCHES "Desktop")
if ("${OPENGL_LIBRARIES}" STREQUAL "")
set(OPENGL_LIBRARIES "GL")
endif ()
-
+
set(LIBS_PRIVATE m atomic pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
if ("${CMAKE_SYSTEM_NAME}" MATCHES "(Net|Open)BSD")
@@ -86,7 +86,7 @@ elseif ("${PLATFORM}" MATCHES "DRM")
find_library(DRM drm)
find_library(GBM gbm)
- if (NOT CMAKE_CROSSCOMPILING)
+ if (NOT CMAKE_CROSSCOMPILING OR NOT CMAKE_SYSROOT)
include_directories(/usr/include/libdrm)
endif ()
set(LIBS_PRIVATE ${GLESV2} ${EGL} ${DRM} ${GBM} atomic pthread m dl)