Skip to content

Commit ae2e48c

Browse files
committed
CMake: don't use system GLFW headers if using built-in GLFW
This fixes the current CI failure.
1 parent 7d57a64 commit ae2e48c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MAT
3737
add_subdirectory(external/glfw)
3838

3939
list(APPEND raylib_sources $<TARGET_OBJECTS:glfw_objlib>)
40+
include_directories(BEFORE SYSTEM external/glfw/include)
4041
else()
4142
MESSAGE(STATUS "Using external GLFW")
4243
set(GLFW_PKG_DEPS glfw3)

0 commit comments

Comments
 (0)