2024-01-27 01:32:30 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-06-21 02:36:16 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO g-truc/glm
|
2024-01-27 01:32:30 +08:00
|
|
|
REF "${VERSION}"
|
2024-02-29 08:38:53 +08:00
|
|
|
SHA512 c6c6fa1ea7a7e97820e36ee042a78be248ae828c99c1b1111080d9bf334a5160c9993a70312351c92a867cd49907c95f9f357c8dfe2bc29946da6e83e27ba20c
|
2017-06-21 02:36:16 +08:00
|
|
|
HEAD_REF master
|
2024-06-21 02:40:36 +08:00
|
|
|
PATCHES
|
|
|
|
fix-clang.patch # Backport https://github.com/g-truc/glm/pull/1286. Remove with next update.
|
2016-09-21 07:13:39 +08:00
|
|
|
)
|
|
|
|
|
2023-02-01 04:34:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-01-27 01:32:30 +08:00
|
|
|
OPTIONS
|
|
|
|
-DGLM_BUILD_LIBRARY=ON
|
|
|
|
-DGLM_BUILD_TESTS=OFF
|
|
|
|
-DGLM_BUILD_INSTALL=ON
|
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
|
|
|
|
2024-01-27 01:32:30 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2016-09-21 15:34:07 +08:00
|
|
|
|
2024-01-27 01:32:30 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/copying.txt")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|