mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 10:37:10 +01:00
fix the xrandr link issue
This commit is contained in:
parent
3f6be88a04
commit
3310f8e728
23
ports/libwebp/0009-glut.patch
Normal file
23
ports/libwebp/0009-glut.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index efd10887b..8b41cc1ba 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -470,7 +470,7 @@ if(WEBP_BUILD_VWEBP)
|
||||
target_link_libraries(vwebp
|
||||
${OPENGL_LIBRARIES}
|
||||
exampleutil
|
||||
- ${GLUT_glut_LIBRARY}
|
||||
+ GLUT::GLUT
|
||||
imageioutil
|
||||
webp
|
||||
webpdemux)
|
||||
@@ -481,6 +481,9 @@ if(WEBP_BUILD_VWEBP)
|
||||
if(UNIX AND NOT(ANDROID OR BLACKBERRY OR APPLE))
|
||||
find_package(X11 REQUIRED)
|
||||
target_link_libraries(vwebp ${X11_LIBRARIES} ${X11_Xxf86vm_LIB})
|
||||
+ if(X11_Xrandr_FOUND) # due to glut linking xrandr if found
|
||||
+ target_link_libraries(vwebp ${X11_Xrandr_LIB})
|
||||
+ endif()
|
||||
endif()
|
||||
install(TARGETS vwebp RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
@ -12,6 +12,7 @@ vcpkg_from_github(
|
||||
0006-fix-dependecies-platform.patch
|
||||
0007-fix-arm-build.patch
|
||||
0008-sdl.patch
|
||||
0009-glut.patch
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
|
Loading…
x
Reference in New Issue
Block a user