mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 12:07:49 +08:00
9c33de2d07
* [freeimage] improve compatibility with other ports, using typedefs identical to other headers to avoid errors * [libwebp] fixes for non-win32 systems * [giflib] revert again #5578 * [freeglut] add missing wrapper for linux
16 lines
738 B
Diff
16 lines
738 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a98540c..a3697cb 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -479,6 +479,10 @@ if(WEBP_BUILD_VWEBP)
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
${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)
|