Skip to content

Commit

Permalink
Fatal error on invalid feature combination.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A committed Feb 3, 2020
1 parent d8167d3 commit 8c64335
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/libwebp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c64335

Please sign in to comment.