mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 13:10:17 +08:00
8e0a801c62
* [libwebp] update to 1.2.1 * update version * Convert patch CRLF to LF * update version * update patch and portfile,cmake * update version * update portifile.cmake * update portfile.cmake * update version * update portfile.cmake * update version * revert portfile.cmake * update version * add trailing line break * update version
16 lines
726 B
Diff
16 lines
726 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 8386687..5ab9ed2 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -540,6 +540,10 @@ if(WEBP_BUILD_VWEBP)
|
|
PRIVATE ${GLUT_INCLUDE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}/src
|
|
${OPENGL_INCLUDE_DIR})
|
|
+ if(UNIX AND NOT(ANDROID OR BLACKBERRY OR APPLE))
|
|
+ find_package(X11 REQUIRED)
|
|
+ target_link_libraries(vwebp ${X11_LIBRARIES} ${X11_Xxf86vm_LIB})
|
|
+ endif()
|
|
install(TARGETS vwebp RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
|
check_c_compiler_flag("-Wno-deprecated-declarations" HAS_NO_DEPRECATED)
|