Add Compatible Interface Properties to VisualC and Xcode SDL2 config file

This commit is contained in:
Anonymous Maarten 2022-05-30 00:39:53 +02:00 committed by Anonymous Maarten
parent 4809bd356e
commit 3c3c02518c
2 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,8 @@ if(NOT TARGET SDL2::SDL2)
INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIR}" INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIR}"
IMPORTED_IMPLIB "${SDL2_LIBRARY}" IMPORTED_IMPLIB "${SDL2_LIBRARY}"
IMPORTED_LOCATION "${SDL2_DLL_LIBRARY}" IMPORTED_LOCATION "${SDL2_DLL_LIBRARY}"
COMPATIBLE_INTERFACE_BOOL "SDL2_SHARED"
INTERFACE_SDL2_SHARED "ON"
) )
endif() endif()

View File

@ -43,5 +43,7 @@ if(NOT TARGET SDL2::SDL2)
INTERFACE_COMPILE_OPTIONS "-F;${SDL2_FRAMEWORK_PARENT_PATH}" INTERFACE_COMPILE_OPTIONS "-F;${SDL2_FRAMEWORK_PARENT_PATH}"
INTERFACE_INCLUDE_DIRECTORIES "${SDL2_FRAMEWORK_PATH}/Headers" INTERFACE_INCLUDE_DIRECTORIES "${SDL2_FRAMEWORK_PATH}/Headers"
INTERFACE_LINK_OPTIONS "-F;${SDL2_FRAMEWORK_PARENT_PATH};-framework;SDL2" INTERFACE_LINK_OPTIONS "-F;${SDL2_FRAMEWORK_PARENT_PATH};-framework;SDL2"
COMPATIBLE_INTERFACE_BOOL "SDL2_SHARED"
INTERFACE_SDL2_SHARED "ON"
) )
endif() endif()