aboutsummaryrefslogtreecommitdiff
path: root/ports/fastcdr
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2020-10-09 14:31:35 +0800
committerGitHub <noreply@github.com>2020-10-08 23:31:35 -0700
commit7e495c0773353de69f24f3af8aea0ae9a129508c (patch)
tree71f50594cea12aa7d76a7883670af91252ab557d /ports/fastcdr
parent956f73a6bde87c9ddc9f2a7f03994c526af68ba5 (diff)
downloadvcpkg-7e495c0773353de69f24f3af8aea0ae9a129508c.tar.gz
vcpkg-7e495c0773353de69f24f3af8aea0ae9a129508c.zip
[fastcdr/jack2/fcl/ensmallen/hwloc] Update to latest release (#13559)
Diffstat (limited to 'ports/fastcdr')
-rw-r--r--ports/fastcdr/CONTROL4
-rw-r--r--ports/fastcdr/portfile.cmake18
2 files changed, 9 insertions, 13 deletions
diff --git a/ports/fastcdr/CONTROL b/ports/fastcdr/CONTROL
index 6acb9a941..87775a41a 100644
--- a/ports/fastcdr/CONTROL
+++ b/ports/fastcdr/CONTROL
@@ -1,3 +1,5 @@
Source: fastcdr
-Version: 1.0.11
+Version: 1.0.15
+Homepage: https://github.com/eProsima/Fast-CDR
Description: eProsima FastCDR is a C++ library that provides two serialization mechanisms. One is the standard CDR serialization mechanism, while the other is a faster implementation that modifies the standard.
+Supports: !linux
diff --git a/ports/fastcdr/portfile.cmake b/ports/fastcdr/portfile.cmake
index 27ac7e328..cfb26720a 100644
--- a/ports/fastcdr/portfile.cmake
+++ b/ports/fastcdr/portfile.cmake
@@ -1,10 +1,10 @@
-include(vcpkg_common_functions)
+vcpkg_fail_port_install(ON_TARGET "linux")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO eProsima/Fast-CDR
- REF v1.0.11
- SHA512 04b84437ffad6425ba7f934adb9ae6a88e710e50ca9259ae0ecdb9dbfcdbd59944fd21e85e81ba4d341df1ee2c76fa7040ab902b869ef3185cacee6e866f5e80
+ REF 065d49248bd4afbae670836ee1f1c718b9760dde # v1.0.15
+ SHA512 1e011f1848abace94299368a5150f9f7513a676ccdc2b2247cebcb098f7b397e9bd20f5663bc35ea9921b1c91654af39e19b867b73c38bdc5612e0e2b926743a
HEAD_REF master
PATCHES install-cmake.patch
)
@@ -13,21 +13,17 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
- -DLICENSE_INSTALL_DIR=share/fastcdr
-DCMAKE_DISABLE_FIND_PACKAGE_GTest=ON
)
vcpkg_install_cmake()
-vcpkg_fixup_cmake_targets(CONFIG_PATH share/fastcdr/cmake)
-
-file(READ "${CURRENT_PACKAGES_DIR}/share/fastcdr/fastcdr-config.cmake" _contents)
-string(REPLACE "include(\${fastcdr_LIB_DIR}/fastcdr/cmake/fastcdr-targets.cmake)" "include(\${CMAKE_CURRENT_LIST_DIR}/fastcdr-targets.cmake)" _contents "${_contents}")
-file(WRITE "${CURRENT_PACKAGES_DIR}/share/fastcdr/fastcdr-config.cmake" "${_contents}")
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/fastcdr)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/lib/fastcdr ${CURRENT_PACKAGES_DIR}/debug/lib/fastcdr)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(READ ${CURRENT_PACKAGES_DIR}/include/fastcdr/eProsima_auto_link.h EPROSIMA_AUTO_LINK_H)
@@ -39,6 +35,4 @@ else()
file(WRITE ${CURRENT_PACKAGES_DIR}/include/fastcdr/config.h "${FASTCDR_H}")
endif()
-# Handle copyright
-file(COPY ${SOURCE_PATH}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/fastcdr)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/fastcdr/license ${CURRENT_PACKAGES_DIR}/share/fastcdr/copyright)
+file(INSTALL ${SOURCE_PATH}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)