vcpkg/ports/glm/portfile.cmake

32 lines
912 B
CMake
Raw Normal View History

2016-09-21 02:13:39 +03:00
include(vcpkg_common_functions)
2017-06-20 11:36:16 -07:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO g-truc/glm
REF 0.9.9.4
SHA512 50e4784fcd5f1da4ae27830948ffe4b412ec53447b89d30c6dcc2b4e0f9ec05cca4b07461d3d8a339eb103fae8dac325fabc87607b5397122ce2021d6e15a1a1
2017-06-20 11:36:16 -07:00
HEAD_REF master
2016-09-21 02:13:39 +03:00
)
2017-12-19 15:25:03 +08:00
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
2018-09-23 15:02:05 -07:00
PATCHES "${CMAKE_CURRENT_LIST_DIR}/disable_warnings_as_error.patch"
2017-12-19 15:25:03 +08:00
)
2017-06-20 11:36:16 -07:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/glm")
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
2016-09-21 10:34:07 +03:00
2016-09-21 02:13:39 +03:00
# Put the license file where vcpkg expects it
2018-05-22 22:03:43 -07:00
file(COPY ${SOURCE_PATH}/manual.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glm/manual.md ${CURRENT_PACKAGES_DIR}/share/glm/copyright)