aboutsummaryrefslogtreecommitdiff
path: root/ports/restclient-cpp
diff options
context:
space:
mode:
authorMikhaylov Anton <anion155@gmail.com>2020-02-04 13:40:15 +0500
committerMikhaylov Anton <anion155@gmail.com>2020-02-04 13:40:15 +0500
commitd56ed7ee7613e969a3f304b3377438cc5a9064d4 (patch)
treed352eee837443f070bbf5d6c5fdd9a6f22f4f8c2 /ports/restclient-cpp
parentab5b74c797f5a2bd6b28915908355e2b32876dfa (diff)
parent85bf9d9d792e379e973d66c8af9f39d65d1d6d42 (diff)
downloadvcpkg-d56ed7ee7613e969a3f304b3377438cc5a9064d4.tar.gz
vcpkg-d56ed7ee7613e969a3f304b3377438cc5a9064d4.zip
Merge branch 'master' into patch-1
Diffstat (limited to 'ports/restclient-cpp')
-rw-r--r--ports/restclient-cpp/CONTROL2
-rw-r--r--ports/restclient-cpp/portfile.cmake15
2 files changed, 8 insertions, 9 deletions
diff --git a/ports/restclient-cpp/CONTROL b/ports/restclient-cpp/CONTROL
index 2aac1bbaf..8b3ede796 100644
--- a/ports/restclient-cpp/CONTROL
+++ b/ports/restclient-cpp/CONTROL
@@ -1,4 +1,4 @@
Source: restclient-cpp
-Version: 0.5.1-2
+Version: 0.5.1-3
Build-Depends: curl
Description: Binn is a binary data serialization format designed to be compact, fast and easy to use.
diff --git a/ports/restclient-cpp/portfile.cmake b/ports/restclient-cpp/portfile.cmake
index 6ad2fa7cf..4efcb3ddd 100644
--- a/ports/restclient-cpp/portfile.cmake
+++ b/ports/restclient-cpp/portfile.cmake
@@ -1,4 +1,6 @@
-include(vcpkg_common_functions)
+if (VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@@ -22,12 +24,9 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/restclient-cpp)
-# Remove includes in debug
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/bin)
+vcpkg_copy_pdbs()
-# Handle copyright
-file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/restclient-cpp)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/restclient-cpp/LICENSE ${CURRENT_PACKAGES_DIR}/share/restclient-cpp/copyright)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-# Copy pdb files
-vcpkg_copy_pdbs()
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)