From 8c64335e2127d32c51c02779a5b8bcbc239b9a0f Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 3 Feb 2020 13:08:37 +0100 Subject: Fatal error on invalid feature combination. --- ports/libwebp/portfile.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/libwebp/portfile.cmake b/ports/libwebp/portfile.cmake index 2682baa3b..9dcf6e971 100644 --- a/ports/libwebp/portfile.cmake +++ b/ports/libwebp/portfile.cmake @@ -42,6 +42,10 @@ if(VCPKG_TARGET_IS_OSX) endif() endif() +if("webp_js" IN_LIST FEATURES AND "${FEATURES}" MATCHES "(anim|gif2webp|img2webp|extras|info|vwebp|mux|cwebp|dwebp)") + message(FATAL_ERROR "Feature webp_js conflicts with features anim|gif2webp|img2webp|extras|info|vwebp|mux|cwebp|dwebp!") +endif() + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA -- cgit v1.2.3