vcpkg/ports/vc/portfile.cmake
Bernhard Manfred Gruber 9ab3bafca4
[vc] Update HEAD_REF and fix CMake configure options (#16552)
* use 1.4 branch of Vc as HEAD_REF

* fix options passes to cmake configure

* increment port version
2021-03-16 12:13:07 -07:00

26 lines
784 B
CMake

vcpkg_fail_port_install(ON_ARCH "arm64")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO VcDevel/Vc
REF 1.4.1
SHA512 dd17e214099796c41d70416d365ea038c00c5fda285b05e48d7ee4fe03f4db2671d2be006ca7b98b0d4133bfcb57faf04cecfe35c29c3b006cd91c9a185cc04a
HEAD_REF 1.4
PATCHES
"correct_cmake_config_path.patch"
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Vc/)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)