mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 05:47:50 +08:00
99346bb692
* Update to v1.2.2 * Fix libwebpmux Windows name breakage The pc file relies on the original output name: No 'lib' prefix for MSVC. No 'liblib' prefix for mingw. * Minor portfile updates * Don't self-depend on default features * Fix the libwebpmux feature * Fix internal tool dependencies * Drop Xrandr patch (fixed in freeglut) * Drop X11 patch (fixed in freeglut) * Cleanup CMake config patch, no extra case hacks * Adjust webp lib names in skia, qt5-imageformats * Adjust downstream WEBP cmake usage * Debug qtimageformats [skip actions] * [tiff] Drive-by fix for CMake warning * Drop non-standard debug postfix * Update indentation * Update port versions * Update versions * Revert qtimageformat debug change * Fixup qt5-imageformats change * Update versions
18 lines
720 B
Diff
18 lines
720 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 83edb3a..f634094 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -540,7 +540,11 @@ if(WEBP_BUILD_EXTRAS)
|
|
find_package(SDL)
|
|
if(SDL_FOUND)
|
|
add_executable(vwebp_sdl ${VWEBP_SDL_SRCS})
|
|
- target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp)
|
|
+ target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp)
|
|
+ if (MSVC)
|
|
+ target_link_libraries(vwebp_sdl dxguid winmm)
|
|
+ endif()
|
|
+ target_compile_definitions(vwebp_sdl PRIVATE WEBP_HAVE_JUST_SDL_H)
|
|
target_include_directories(vwebp_sdl
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|