From ae2e48c77fa7e340ff6faea9366f61186b50622d Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sat, 4 May 2019 22:48:25 +0200 Subject: [PATCH] CMake: don't use system GLFW headers if using built-in GLFW This fixes the current CI failure. --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7b69e0f9a..8ccdc932d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,6 +37,7 @@ if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MAT add_subdirectory(external/glfw) list(APPEND raylib_sources $) + include_directories(BEFORE SYSTEM external/glfw/include) else() MESSAGE(STATUS "Using external GLFW") set(GLFW_PKG_DEPS glfw3)