vcpkg/ports/directxmath/portfile.cmake
Chuck Walbourn c450737386
[directxmath] port updated for cmake improvements (#15383)
* directxmath port updated for cmake improvements

* Rev control version

* update CONTROL for version
2020-12-30 22:40:47 -08:00

33 lines
1.0 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/DirectXMath
REF dec2020b
SHA512 59f2e7024b145e09ec40639627344175e77db0527888dce07a6e5785cb240ed163c8d5b063222226ddd1af8128de1d842ff15a1f6e9f5e1e1a14dfd2da1a270b
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
if(NOT VCPKG_TARGET_IS_WINDOWS)
vcpkg_download_distfile(
SAL_HEADER
URLS "https://raw.githubusercontent.com/dotnet/corert/master/src/Native/inc/unix/sal.h"
FILENAME "sal.h"
SHA512 1643571673195d9eb892d2f2ac76eac7113ef7aa0ca116d79f3e4d3dc9df8a31600a9668b7e7678dfbe5a76906f9e0734ef8d6db0903ccc68fc742dd8238d8b0
)
file(INSTALL
${DOWNLOADS}/sal.h
DESTINATION ${CURRENT_PACKAGES_DIR}/include/DirectXMath)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)