mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
cmake: use compatible interface properties to disallow linking to a different version of SDL
This commit is contained in:
parent
987b748067
commit
103fbcfc05
3 changed files with 20 additions and 4 deletions
|
|
@ -65,6 +65,8 @@ if(NOT TARGET SDL3::SDL3-shared)
|
|||
IMPORTED_SONAME "${_sdl3_framework_path}/SDL3"
|
||||
COMPATIBLE_INTERFACE_BOOL "SDL3_SHARED"
|
||||
INTERFACE_SDL3_SHARED "ON"
|
||||
COMPATIBLE_INTERFACE_STRING "SDL_VERSION"
|
||||
INTERFACE_SDL_VERSION "SDL3"
|
||||
)
|
||||
endif()
|
||||
set(SDL3_SDL3-shared_FOUND TRUE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue