cmake: install SDL headers with SYSTEM property disabled
This causes the SDL include path to be added using -I instead of -isystemmain
parent
fb8ac1ab7d
commit
4eb0f10dda
|
@ -3211,9 +3211,10 @@ endif()
|
||||||
|
|
||||||
add_library(SDL3_Headers INTERFACE)
|
add_library(SDL3_Headers INTERFACE)
|
||||||
add_library(SDL3::Headers ALIAS SDL3_Headers)
|
add_library(SDL3::Headers ALIAS SDL3_Headers)
|
||||||
set_target_properties(SDL3_Headers PROPERTIES
|
set_property(TARGET SDL3_Headers PROPERTY EXPORT_NAME "Headers")
|
||||||
EXPORT_NAME "Headers"
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.25")
|
||||||
)
|
set_property(TARGET SDL3_Headers PROPERTY EXPORT_NO_SYSTEM "TRUE")
|
||||||
|
endif()
|
||||||
target_include_directories(SDL3_Headers
|
target_include_directories(SDL3_Headers
|
||||||
INTERFACE
|
INTERFACE
|
||||||
"$<BUILD_INTERFACE:${SDL3_BINARY_DIR}/include>"
|
"$<BUILD_INTERFACE:${SDL3_BINARY_DIR}/include>"
|
||||||
|
|
Loading…
Reference in New Issue