From 54907ae3ba5dc71fd3649339ba58e17dcdd2a234 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Thu, 20 Jan 2022 23:29:06 +0100 Subject: [PATCH] [curlpp] fix single config builds (#22617) * [curlpp] fix for single config triplets * fix references * fix curlpp-config not present in windows static builds * fix references --- ports/curlpp/portfile.cmake | 10 +++++++--- ports/curlpp/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/c-/curlpp.json | 5 +++++ 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ports/curlpp/portfile.cmake b/ports/curlpp/portfile.cmake index f52c2b575f3f4e..8a2652fc4b5f63 100644 --- a/ports/curlpp/portfile.cmake +++ b/ports/curlpp/portfile.cmake @@ -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) diff --git a/ports/curlpp/vcpkg.json b/ports/curlpp/vcpkg.json index 0fbbe9fe64b77f..00b45a3f3dcc9f 100644 --- a/ports/curlpp/vcpkg.json +++ b/ports/curlpp/vcpkg.json @@ -1,7 +1,7 @@ { "name": "curlpp", "version-date": "2018-06-15", - "port-version": 6, + "port-version": 7, "description": "C++ wrapper around libcURL", "dependencies": [ "curl", diff --git a/versions/baseline.json b/versions/baseline.json index 97856e0dad10b3..fc1508a895d03e 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1710,7 +1710,7 @@ }, "curlpp": { "baseline": "2018-06-15", - "port-version": 6 + "port-version": 7 }, "cute-headers": { "baseline": "2019-09-20", diff --git a/versions/c-/curlpp.json b/versions/c-/curlpp.json index 33f166cd3ded0e..1398ea703b426d 100644 --- a/versions/c-/curlpp.json +++ b/versions/c-/curlpp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "ebde1c1d303f750ce06e530295a820787878e6cd", + "version-date": "2018-06-15", + "port-version": 7 + }, { "git-tree": "a4cea77cfb3429b1ea778167d06c39a691b97e13", "version-date": "2018-06-15",