Commit 3c3c02518c35a0665ebbedb8641dfab252630fa0

Anonymous Maarten 2022-05-30T00:39:53

Add Compatible Interface Properties to VisualC and Xcode SDL2 config file

diff --git a/VisualC/pkg-support/cmake/sdl2-config.cmake b/VisualC/pkg-support/cmake/sdl2-config.cmake
index a2f0e94..8722b0d 100644
--- a/VisualC/pkg-support/cmake/sdl2-config.cmake
+++ b/VisualC/pkg-support/cmake/sdl2-config.cmake
@@ -56,6 +56,8 @@ if(NOT TARGET SDL2::SDL2)
             INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIR}"
             IMPORTED_IMPLIB "${SDL2_LIBRARY}"
             IMPORTED_LOCATION "${SDL2_DLL_LIBRARY}"
+            COMPATIBLE_INTERFACE_BOOL "SDL2_SHARED"
+            INTERFACE_SDL2_SHARED "ON"
     )
 endif()
 
diff --git a/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake b/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake
index aa61856..fd481f9 100644
--- a/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake
+++ b/Xcode/SDL/pkg-support/resources/CMake/sdl2-config.cmake
@@ -43,5 +43,7 @@ if(NOT TARGET SDL2::SDL2)
             INTERFACE_COMPILE_OPTIONS "-F;${SDL2_FRAMEWORK_PARENT_PATH}"
             INTERFACE_INCLUDE_DIRECTORIES "${SDL2_FRAMEWORK_PATH}/Headers"
             INTERFACE_LINK_OPTIONS "-F;${SDL2_FRAMEWORK_PARENT_PATH};-framework;SDL2"
+            COMPATIBLE_INTERFACE_BOOL "SDL2_SHARED"
+            INTERFACE_SDL2_SHARED "ON"
     )
 endif()