Fix QNX build - prioritize system EGL headers over the Khronos ones

This commit is contained in:
Sam Lantinga
2017-08-30 00:40:06 -07:00
parent 9ca6292372
commit e53c5c5c50
3 changed files with 4 additions and 3 deletions

View File

@@ -232,7 +232,8 @@ endif()
add_definitions(-DUSING_GENERATED_CONFIG_H)
# General includes
include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include ${SDL2_SOURCE_DIR}/src/video/khronos)
include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter ${SDL2_SOURCE_DIR}/src/video/khronos")
# All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
# you only need to have a platform override them if they are disabling.