2017-06-21 02:36:16 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO g-truc/glm
|
2023-10-20 06:28:17 +08:00
|
|
|
REF bf71a834948186f4097caa076cd2663c69a10e1e #v0.9.9.8
|
|
|
|
SHA512 226266c02af616a96fb19ee32cf3f98347daa43a4fde5d618d36b38709dce1280de126c542524d40725ecf70359edcc5b60660554c65ce246514501fb4c9c87c
|
2017-06-21 02:36:16 +08:00
|
|
|
HEAD_REF master
|
2016-09-21 07:13:39 +08:00
|
|
|
)
|
|
|
|
|
2023-02-01 04:34:37 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
2017-12-19 15:25:03 +08:00
|
|
|
|
2023-02-01 04:34:37 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-06-21 02:36:16 +08:00
|
|
|
)
|
|
|
|
|
2023-02-01 04:34:37 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2017-06-21 02:36:16 +08:00
|
|
|
|
2023-02-01 04:34:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2016-09-21 15:34:07 +08:00
|
|
|
|
2023-10-20 06:28:17 +08:00
|
|
|
# Put the license file where vcpkg expects it
|
|
|
|
file(INSTALL "${SOURCE_PATH}/copying.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|