From 2c9613321415ef38450513a8e876db8919690aac Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 14 Jan 2020 00:20:46 +0100 Subject: deactivate vwebp and extras on osx. (due to CI message) --- ports/libwebp/CONTROL | 2 +- ports/libwebp/portfile.cmake | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ports/libwebp/CONTROL b/ports/libwebp/CONTROL index 58be94505..23fb15e70 100644 --- a/ports/libwebp/CONTROL +++ b/ports/libwebp/CONTROL @@ -58,4 +58,4 @@ Description: Enable byte swap for 16 bit colorspaces. Feature: all Description: enable all features except for webp_js and swap16bitcsp -Build-Depends: libwebp[anim, gif2webp, img2webp, vwebp_sdl, info, mux, extras, nearlossless, simd, cwebp, dwebp] \ No newline at end of file +Build-Depends: libwebp[anim, gif2webp, img2webp, vwebp_sdl (!osx), info, mux, extras (!osx), nearlossless, simd, cwebp, dwebp] \ No newline at end of file diff --git a/ports/libwebp/portfile.cmake b/ports/libwebp/portfile.cmake index 58c197867..2cdbd9e03 100644 --- a/ports/libwebp/portfile.cmake +++ b/ports/libwebp/portfile.cmake @@ -33,14 +33,14 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS ) -if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux") +if(VCPKG_TARGET_IS_LINUX) message("WebP currently requires the following library from the system package manager:\n Xxf86vm\n\nThis can be installed on Ubuntu systems via apt-get install libxxf86vm-dev") endif() -if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin") - set(WEBP_BUILD_VWEBP OFF) - set(WEBP_BUILD_EXTRAS OFF) - message("Due to GLUT Framework problems with CMake, at the moment it's not possible to build VWebP on Mac. It has been disabled together with extras.") +if(VCPKG_TARGET_IS_OSX) + if("vwebp" IN_LIST FEATURES OR "extras" IN_LIST FEATURES) + message(FATAL_ERROR "Due to GLUT Framework problems with CMake, at the moment it's not possible to build VWebP or extras on Mac!") + endif() endif() vcpkg_configure_cmake( -- cgit v1.2.3