opnsense-ports/games/warzone2100/files/patch-lib_sdl_CMakeLists.txt
Franco Fichtner cce528f1dd */*: sync with upstream
Taken from: FreeBSD
2022-12-15 09:13:45 +01:00

17 lines
894 B
Text

--- lib/sdl/CMakeLists.txt.orig 2022-11-02 16:53:49 UTC
+++ lib/sdl/CMakeLists.txt
@@ -55,14 +55,6 @@ if(NOT DEFINED WZ_FINDSDL2_NOCONFIG OR NOT WZ_FINDSDL2
find_package(SDL2 ${SDL2_MIN_VERSION} CONFIG QUIET)
endif()
if(SDL2_FOUND)
- if (TARGET SDL2::SDL2-static)
- # Check for INTERFACE_INCLUDE_DIRECTORIES to ignore the "aliased" target that vcpkg creates
- get_target_property(_sdl2_include_dir SDL2::SDL2-static INTERFACE_INCLUDE_DIRECTORIES)
- test_link_to_sdl_target(SDL2::SDL2-static FALSE LINK_SUCCESS_SDL2_SDL2STATIC_TARGET)
- if (_sdl2_include_dir AND LINK_SUCCESS_SDL2_SDL2STATIC_TARGET)
- set(_sdl2_library SDL2::SDL2-static)
- endif()
- endif()
if (NOT _sdl2_library AND TARGET SDL2::SDL2)
# Check for INTERFACE_INCLUDE_DIRECTORIES to ignore the "aliased" target that vcpkg creates
get_target_property(_sdl2_include_dir SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES)