Skip to content

Commit

Permalink
[curlpp] fix single config builds (microsoft#22617)
Browse files Browse the repository at this point in the history
* [curlpp] fix for single config triplets

* fix references

* fix curlpp-config not present in windows static builds

* fix references
  • Loading branch information
cenit authored Jan 20, 2022
1 parent c9cffa2 commit 54907ae
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions ports/curlpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
"${CURRENT_PACKAGES_DIR}/bin"
"${CURRENT_PACKAGES_DIR}/debug/bin"
)
elseif(VCPKG_TARGET_IS_WINDOWS)
endif()

if(VCPKG_TARGET_IS_WINDOWS AND NOT (VCPKG_LIBRARY_LINKAGE STREQUAL static))
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/curlpp-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/..")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curlpp-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curlpp-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
endif()
endif()

vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

file(INSTALL "${SOURCE_PATH}/doc/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}")
file(INSTALL "${SOURCE_PATH}/doc/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
2 changes: 1 addition & 1 deletion ports/curlpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "curlpp",
"version-date": "2018-06-15",
"port-version": 6,
"port-version": 7,
"description": "C++ wrapper around libcURL",
"dependencies": [
"curl",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@
},
"curlpp": {
"baseline": "2018-06-15",
"port-version": 6
"port-version": 7
},
"cute-headers": {
"baseline": "2019-09-20",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/curlpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ebde1c1d303f750ce06e530295a820787878e6cd",
"version-date": "2018-06-15",
"port-version": 7
},
{
"git-tree": "a4cea77cfb3429b1ea778167d06c39a691b97e13",
"version-date": "2018-06-15",
Expand Down

0 comments on commit 54907ae

Please sign in to comment.