Commit 4c3d1d32a5c165abc984b25f1da3e864b4227eeb

Anonymous Maarten 2022-05-27T11:52:16

Use INTERFACE_INCLUDE_DIRECTORIES in Xcode's sdl2-config.cmake

1
2
3
4
5
6
7
8
9
10
11
diff --git a/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake b/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake
index bea873d..776935a 100644
--- a/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake
+++ b/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake
@@ -43,5 +43,6 @@ if(NOT TARGET SDL2::SDL2)
         PROPERTIES
             FRAMEWORK 1
             IMPORTED_LOCATION "${SDL2_LIBRARY}"
+            INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIR}"
     )
 endif()