mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 09:47:54 +08:00
88dd0e7ddd
* [libuuid]Add warning to non-unix platform when building. * [azure-storage-cpp] Don't rely on vcpkg install of libuuid on OSX in favor of the built in version * [azure-storage-cpp] Remove old patch
37 lines
1006 B
CMake
37 lines
1006 B
CMake
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
|
endif()
|
|
|
|
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Azure/azure-storage-cpp
|
|
REF v6.0.0
|
|
SHA512 e568c3c3fd10a688b4d2491987998b1e133e54853fbf94a238a0cc3955dfd4d68bedf79a0e30bb5f30e8dd3c2bf41999d7c8658571b7dca9a4058140258ca314
|
|
HEAD_REF master
|
|
PATCHES
|
|
# on osx use the uuid.h that is part of the osx sdk
|
|
builtin-uuid-osx.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}/Microsoft.WindowsAzure.Storage
|
|
OPTIONS
|
|
-DCMAKE_FIND_FRAMEWORK=LAST
|
|
-DBUILD_TESTS=OFF
|
|
-DBUILD_SAMPLES=OFF
|
|
-DGETTEXT_LIB_DIR=${CURRENT_INSTALLED_DIR}/include
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(INSTALL
|
|
${SOURCE_PATH}/LICENSE.txt
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/azure-storage-cpp RENAME copyright)
|
|
file(REMOVE_RECURSE
|
|
${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|