From 95cde5c181b5fd1d9ee3f13db749799c4e8ac9d3 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 13 Jun 2022 22:15:48 +0200 Subject: add raylib to the build chain with -O3 and -march=native --- .../src/external/glfw/CMake/modules/FindOSMesa.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake (limited to 'raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake') 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 + +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 () -- cgit v1.2.3