diff options
| author | Curoky <cccuroky@gmail.com> | 2020-01-29 08:46:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-28 16:46:23 -0800 |
| commit | f272b0c9846d24c2b77a5fb60e1061d397384acb (patch) | |
| tree | d3b2b38a189c60530354e31958953034b23e049b /ports/restclient-cpp/portfile.cmake | |
| parent | 89751b450a161c1451937ee5338e599a51cf53a2 (diff) | |
| download | vcpkg-f272b0c9846d24c2b77a5fb60e1061d397384acb.tar.gz vcpkg-f272b0c9846d24c2b77a5fb60e1061d397384acb.zip | |
[restclient-cpp]: correct the way to remove debug/include (#9487)
* [restclient-cpp]: correct the way to remove debug/include
* [restclient-cpp] Only support static build on Windows.
* [restclient-cpp] Bump version
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports/restclient-cpp/portfile.cmake')
| -rw-r--r-- | ports/restclient-cpp/portfile.cmake | 15 |
1 files changed, 7 insertions, 8 deletions
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) |
