aboutsummaryrefslogtreecommitdiff
path: root/ports/aws-lambda-cpp
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2019-08-12 08:24:20 +0200
committerVictor Romero <romerosanchezv@gmail.com>2019-08-11 23:24:20 -0700
commitcabbe165259bbde86103e8764d67d122f84eb13e (patch)
tree1963a10659501768a59ef221b313d6cfd203deb9 /ports/aws-lambda-cpp
parent29ddf1a5c2711161a5642ab515f6cae5f01ca3e9 (diff)
downloadvcpkg-cabbe165259bbde86103e8764d67d122f84eb13e.tar.gz
vcpkg-cabbe165259bbde86103e8764d67d122f84eb13e.zip
[vcpkg/cmake] Added a function to fail from portfiles in a default way (#7601)
* added function vcpkg_fail_port_install to fail the portfile under requested circumstances and display a standarized failure message * added always option. * fix linux regressions * bump control for ci tu rerun
Diffstat (limited to 'ports/aws-lambda-cpp')
-rw-r--r--ports/aws-lambda-cpp/CONTROL2
-rw-r--r--ports/aws-lambda-cpp/portfile.cmake7
2 files changed, 5 insertions, 4 deletions
diff --git a/ports/aws-lambda-cpp/CONTROL b/ports/aws-lambda-cpp/CONTROL
index 048f28fac..53d7a917f 100644
--- a/ports/aws-lambda-cpp/CONTROL
+++ b/ports/aws-lambda-cpp/CONTROL
@@ -1,4 +1,4 @@
Source: aws-lambda-cpp
-Version: 0.1.0-1
+Version: 0.1.0-2
Build-Depends: curl
Description: C++ Runtime for AWS Lambda.
diff --git a/ports/aws-lambda-cpp/portfile.cmake b/ports/aws-lambda-cpp/portfile.cmake
index 4a4cddafd..7ba33e8f1 100644
--- a/ports/aws-lambda-cpp/portfile.cmake
+++ b/ports/aws-lambda-cpp/portfile.cmake
@@ -1,8 +1,9 @@
include(vcpkg_common_functions)
-if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
- message(FATAL_ERROR "aws-lambda-cpp currently only supports Linux and Mac platforms")
-endif()
+vcpkg_fail_port_install(MESSAGE "aws-lambda-cpp currently only supports Linux and Mac platforms" ON_TARGET "Windows")
+#if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+# message(FATAL_ERROR "aws-lambda-cpp currently only supports Linux and Mac platforms")
+#endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH