mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 21:47:49 +08:00
726c111481
vcpkg will now fail on failure to apply patches except when using `--head`.
36 lines
958 B
CMake
36 lines
958 B
CMake
include(vcpkg_common_functions)
|
|
|
|
if (NOT ((VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")))
|
|
message(FATAL_ERROR "libuuid currently only supports unix platforms.")
|
|
endif()
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://sourceforge.net/projects/libuuid/files/libuuid-1.0.3.tar.gz"
|
|
FILENAME libuuid-1.0.3.tar.gz
|
|
SHA512 77488caccc66503f6f2ded7bdfc4d3bc2c20b24a8dc95b2051633c695e99ec27876ffbafe38269b939826e1fdb06eea328f07b796c9e0aaca12331a787175507
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
)
|
|
|
|
file(COPY
|
|
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
|
${CMAKE_CURRENT_LIST_DIR}/config.linux.h
|
|
DESTINATION ${SOURCE_PATH}
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(INSTALL
|
|
${SOURCE_PATH}/COPYING
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/libuuid RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|