aboutsummaryrefslogtreecommitdiffstats
path: root/raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-06-13 22:15:48 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-06-13 22:15:48 +0200
commit95cde5c181b5fd1d9ee3f13db749799c4e8ac9d3 (patch)
tree352480349a46d19ab5b8078ac4ccb79d27166f04 /raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake
parentmouse is captured again, pretty gud (diff)
downloadyabs-95cde5c181b5fd1d9ee3f13db749799c4e8ac9d3.tar.gz
yabs-95cde5c181b5fd1d9ee3f13db749799c4e8ac9d3.tar.bz2
yabs-95cde5c181b5fd1d9ee3f13db749799c4e8ac9d3.tar.xz
yabs-95cde5c181b5fd1d9ee3f13db749799c4e8ac9d3.tar.zst
yabs-95cde5c181b5fd1d9ee3f13db749799c4e8ac9d3.zip
add raylib to the build chain with -O3 and -march=native
Diffstat (limited to 'raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake')
-rw-r--r--raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake b/raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake
new file mode 100644
index 0000000..3194bd9
--- /dev/null
+++ b/raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake
@@ -0,0 +1,18 @@
+# Try to find OSMesa on a Unix system
+#
+# This will define:
+#
+# OSMESA_LIBRARIES - Link these to use OSMesa
+# OSMESA_INCLUDE_DIR - Include directory for OSMesa
+#
+# Copyright (c) 2014 Brandon Schaefer <brandon.schaefer@canonical.com>
+
+if (NOT WIN32)
+
+ find_package (PkgConfig)
+ pkg_check_modules (PKG_OSMESA QUIET osmesa)
+
+ set (OSMESA_INCLUDE_DIR ${PKG_OSMESA_INCLUDE_DIRS})
+ set (OSMESA_LIBRARIES ${PKG_OSMESA_LIBRARIES})
+
+endif ()