[aws-lambda-cpp]Add warning to non-Linux platform when building (#6211)

* [aws-lambda-cpp]Add warning to non-Linux platform when building

* Also allow osx builds

* Correct Mac check

* OR to AND
This commit is contained in:
Cheney Wang 2019-04-27 03:45:43 +08:00 committed by Griffin Downs
parent 1c9d54363a
commit a5a5e870aa
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: aws-lambda-cpp
Version: 0.1.0
Version: 0.1.0-1
Build-Depends: curl
Description: C++ Runtime for AWS Lambda.

View File

@ -1,5 +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_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO awslabs/aws-lambda-cpp