]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/ogre-next/fix_find_package_sdl2.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / ogre-next / fix_find_package_sdl2.patch
1 diff --git a/CMake/Dependencies.cmake b/CMake/Dependencies.cmake
2 index 4b67ed8cb..7da194820 100644
3 --- a/CMake/Dependencies.cmake
4 +++ b/CMake/Dependencies.cmake
5 @@ -292,11 +292,11 @@ macro_log_feature(PYTHONLIBS_FOUND "Python" "Language bindings to use OGRE from
6 # Find sdl2
7 if(NOT ANDROID AND NOT EMSCRIPTEN)
8 # find script does not work in cross compilation environment
9 - find_package(SDL2)
10 + find_package(SDL2 CONFIG)
11 macro_log_feature(SDL2_FOUND "SDL2" "Simple DirectMedia Library needed for input handling in samples" "https://www.libsdl.org/" FALSE "" "")
12 if(SDL2_FOUND AND WIN32 AND NOT SDL2_BINARY)
13 # fix linking static SDL2 on windows
14 - set(SDL2_LIBRARY ${SDL2_LIBRARY} winmm.lib imm32.lib version.lib)
15 + set(SDL2_LIBRARY SDL2::SDL2 winmm.lib imm32.lib version.lib)
16 endif()
17 endif()
18