diff options
| author | Alexej Harm <alexej.h@xiphos.de> | 2019-03-21 18:15:37 +0100 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-03-21 10:15:37 -0700 |
| commit | b5ae25cf3d1e8c28095f5379f18f1a47390b33a0 (patch) | |
| tree | 8674cd4ef88905c9eab33cd21e03a394c98327e7 | |
| parent | 773a68586705cdcf533a02b6263f018d835e946b (diff) | |
| download | vcpkg-b5ae25cf3d1e8c28095f5379f18f1a47390b33a0.tar.gz vcpkg-b5ae25cf3d1e8c28095f5379f18f1a47390b33a0.zip | |
[cpr] Changed library linkage to static. (#5705)
* [cpr] Changed library linkage to static.
* [cpr] Removed unintentional file.
* [cpr] Cleanup and bump version
| -rw-r--r-- | ports/cpr/CONTROL | 2 | ||||
| -rw-r--r-- | ports/cpr/portfile.cmake | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/ports/cpr/CONTROL b/ports/cpr/CONTROL index 6a2751073..a8cdbf052 100644 --- a/ports/cpr/CONTROL +++ b/ports/cpr/CONTROL @@ -1,4 +1,4 @@ Source: cpr -Version: 1.3.0-3 +Version: 1.3.0-4 Description: C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project. Build-Depends: curl[core] diff --git a/ports/cpr/portfile.cmake b/ports/cpr/portfile.cmake index 281e0da43..56e9c6cf4 100644 --- a/ports/cpr/portfile.cmake +++ b/ports/cpr/portfile.cmake @@ -1,15 +1,14 @@ include(vcpkg_common_functions) +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO whoshuu/cpr REF 1.3.0 SHA512 fd08f8a592a5e1fb8dc93158a4850b81575983c08527fb415f65bd9284f93c804c8680d16c548744583cd26b9353a7d4838269cfc59ccb6003da8941f620c273 -) - -vcpkg_apply_patches( - SOURCE_PATH ${SOURCE_PATH} - PATCHES ${CMAKE_CURRENT_LIST_DIR}/enable-install.patch + HEAD_REF master + PATCHES enable-install.patch ) vcpkg_configure_cmake( @@ -18,7 +17,6 @@ vcpkg_configure_cmake( OPTIONS -DBUILD_CPR_TESTS=OFF -DUSE_SYSTEM_CURL=ON - -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON ) |
