From c721ff67847649837274dfe3ee4cb658dc57baa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jack=C2=B7Boos=C2=B7Yu?= <47264268+JackBoosY@users.noreply.github.com> Date: Thu, 19 Aug 2021 08:18:05 +0800 Subject: [lua] Add error message to feature `cpp` when building uwp (#19510) * [lua] Add error message to the cpp selection feature when building uwp. * version --- ports/lua/portfile.cmake | 3 +++ ports/lua/vcpkg.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'ports/lua') diff --git a/ports/lua/portfile.cmake b/ports/lua/portfile.cmake index 89097096c..1a7fac53c 100644 --- a/ports/lua/portfile.cmake +++ b/ports/lua/portfile.cmake @@ -16,6 +16,9 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) # Used in cmake wrapper set(ENABLE_LUA_CPP 0) if ("cpp" IN_LIST FEATURES) + if (VCPKG_TARGET_IS_UWP) + message(FATAL_ERROR "Feature cpp does not support uwp.") + endif() set(ENABLE_LUA_CPP 1) endif() diff --git a/ports/lua/vcpkg.json b/ports/lua/vcpkg.json index 02dc73117..e381a077e 100644 --- a/ports/lua/vcpkg.json +++ b/ports/lua/vcpkg.json @@ -1,7 +1,7 @@ { "name": "lua", "version-semver": "5.4.3", - "port-version": 2, + "port-version": 3, "description": "A powerful, fast, lightweight, embeddable scripting language", "homepage": "https://www.lua.org", "features": { -- cgit v1.2.3