aboutsummaryrefslogtreecommitdiff
path: root/ports/gts/portfile.cmake
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-04-27 23:01:31 +0800
committerGitHub <noreply@github.com>2020-04-27 08:01:31 -0700
commit981daa4e98f0fbb5267ae80cd9e2cdaca985dc44 (patch)
treeb0293ab761d49e9b54f9517955ef3f1e93e1baf5 /ports/gts/portfile.cmake
parentce08802d88ccd31c0b608f82e9281508808e45ca (diff)
downloadvcpkg-981daa4e98f0fbb5267ae80cd9e2cdaca985dc44.tar.gz
vcpkg-981daa4e98f0fbb5267ae80cd9e2cdaca985dc44.zip
[gts] Support for build with cmake in unix (#10055)
* [gts] Support for build with cmake in unix * update baseline * [gts] Apply patch * [gts] Fix undefined M_PI in windows * update baseline
Diffstat (limited to 'ports/gts/portfile.cmake')
-rw-r--r--ports/gts/portfile.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/ports/gts/portfile.cmake b/ports/gts/portfile.cmake
index 71a62e756..46f3b40b5 100644
--- a/ports/gts/portfile.cmake
+++ b/ports/gts/portfile.cmake
@@ -1,13 +1,14 @@
-include(vcpkg_common_functions)
-
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO finetjul/gts
- REF c4da61ae075f355d9ecc9f2d4767acf777f54c2b
+ REF c4da61ae075f355d9ecc9f2d4767acf777f54c2b #0.7.6
SHA512 e53d11213c26cbda08ae62e6388aee0a14d2884de72268ad25d10a23e77baa53a2b1151c5cc7643b059ded82b8edf0da79144c3108949fdc515168cac13ffca9
HEAD_REF master
+ PATCHES
+ fix-M_PI-in-windows.patch
+ support-unix.patch
)
vcpkg_configure_cmake(
@@ -20,6 +21,6 @@ vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/gts RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_copy_pdbs()