mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 20:27:37 +08:00
7632bef82e
* Add cglm 0.8.8 * Update CI baseline * Disable ARM and UWP builds * Update CI baseline * Add usage Co-authored-by: chausner <chausner@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
30 lines
1001 B
CMake
30 lines
1001 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO recp/cglm
|
|
REF "v${VERSION}"
|
|
SHA512 a89f76378aee6ee8a7a38b9ce975bff1873590b4cb83daaf658b2875578758d05e15e92ef7141df3109ee37e6b097eda0bb2e60b13fdeca536a72053145c5ece
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CGLM_BUILD_SHARED)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CGLM_BUILD_STATIC)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DCGLM_SHARED=${CGLM_BUILD_SHARED}"
|
|
"-DCGLM_STATIC=${CGLM_BUILD_STATIC}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/cglm")
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
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)
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|