vcpkg/ports/azure-storage-cpp/portfile.cmake

36 lines
956 B
CMake
Raw Normal View History

if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "${PORT} does not currently support UWP")
endif()
2016-12-02 14:54:03 +08:00
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-storage-cpp
2018-05-15 17:34:36 +08:00
REF v4.0.0
SHA512 5ca264e014685852eb52b5b732d352e3eaaca3358d4bdf78ac2a571fd3b18f2d967583ce4ec64105fb87f0ef182a84671248f3f6a62c4886ff05dfa10c773605
HEAD_REF master
2016-12-02 14:54:03 +08:00
PATCHES
${CMAKE_CURRENT_LIST_DIR}/cmake.patch
${CMAKE_CURRENT_LIST_DIR}/pplx-do-while.patch
2016-12-02 14:54:03 +08:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/Microsoft.WindowsAzure.Storage
OPTIONS
-DCMAKE_FIND_FRAMEWORK=LAST
2016-12-02 14:54:03 +08:00
-DBUILD_TESTS=OFF
-DBUILD_SAMPLES=OFF
)
vcpkg_install_cmake()
file(INSTALL
${SOURCE_PATH}/LICENSE.txt
DESTINATION ${CURRENT_PACKAGES_DIR}/share/azure-storage-cpp RENAME copyright)
file(REMOVE_RECURSE
2016-12-02 14:54:03 +08:00
${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_copy_pdbs()