mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 15:31:48 +08:00
1d84bbd83d
* [poly2tri] Fix consuming the library due to incorrectly encoded header sweep.h was in ANSI codepage and some characters were illegal in utf-8 * Completely remove the surname. Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
26 lines
801 B
CMake
26 lines
801 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO greenm01/poly2tri
|
|
REF 88de49021b6d9bef6faa1bc94ceb3fbd85c3c204
|
|
SHA512 fa256bcf923ad59f42205edf5a7e07cac6cbd9a37cefb9a0961a2e06aea7fa8ffd09d4e26154c0028601c12804483842cb935d9f602385f5f203c9628382c4fb
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-sweep-h-codepage.patch
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
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)
|