vcpkg/ports/blaze/portfile.cmake

32 lines
875 B
CMake
Raw Normal View History

2017-07-17 21:43:46 +08:00
include(vcpkg_common_functions)
vcpkg_from_bitbucket(
OUT_SOURCE_PATH SOURCE_PATH
REPO blaze-lib/blaze
2018-02-11 13:15:36 +08:00
REF v3.3
2018-02-20 14:25:19 +08:00
SHA512 1210db57fca04832ff9382cbb904f22f70eab3acbc355a1d22435bfe042d6acac7f86a908d8654cf49517c2ad825cd8be19f85b20b1ebd46a79d474a424653c8
HEAD_REF master
2017-07-17 21:43:46 +08:00
)
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES "${CMAKE_CURRENT_LIST_DIR}/no-absolute-paths-in-install.patch"
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBLAZE_SMP_THREADS=C++11
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/blaze/cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
2017-07-17 21:43:46 +08:00
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/blaze)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/blaze/LICENSE ${CURRENT_PACKAGES_DIR}/share/blaze/copyright)