diff --git a/patches/sdl/0006-CMake-Use-PUBLIC_HEADER-property-to-install-headers.patch b/patches/sdl/0006-CMake-Use-PUBLIC_HEADER-property-to-install-headers.patch index fb4320b..5038414 100644 --- a/patches/sdl/0006-CMake-Use-PUBLIC_HEADER-property-to-install-headers.patch +++ b/patches/sdl/0006-CMake-Use-PUBLIC_HEADER-property-to-install-headers.patch @@ -25,7 +25,7 @@ index 1bc7ffb..5bc532e 100644 endif() if(APPLE) + set_target_properties(SDL2 PROPERTIES -+ PUBLIC_HEADER "${SDL2_INCLUDE_FILES} ${SDL_GENERATED_HEADERS}") ++ PUBLIC_HEADER "${SDL2_INCLUDE_FILES} ${SDL_GENERATED_HEADERS} ${SDL2_BINARY_DIR}/include/SDL_revision.h ${SDL2_BINARY_DIR}/include-config-$>/SDL_config.h") # FIXME: Remove SOVERSION in SDL3 set_target_properties(SDL2 PROPERTIES MACOSX_RPATH 1 @@ -42,7 +42,7 @@ index 1bc7ffb..5bc532e 100644 OUTPUT_NAME "${sdl_static_libname}" POSITION_INDEPENDENT_CODE "${SDL_STATIC_PIC}") + set_target_properties(SDL2-static PROPERTIES -+ PUBLIC_HEADER "${SDL2_INCLUDE_FILES} ${SDL_GENERATED_HEADERS}") ++ PUBLIC_HEADER "${SDL2_INCLUDE_FILES} ${SDL_GENERATED_HEADERS} ${SDL2_BINARY_DIR}/include/SDL_revision.h ${SDL2_BINARY_DIR}/include-config-$>/SDL_config.h") target_compile_definitions(SDL2-static PRIVATE SDL_STATIC_LIB) # TODO: Win32 platforms keep the same suffix .lib for import and static # libraries - do we need to consider this?