[catch2] Fix catch2-with-main.pc (#32047)

This commit is contained in:
Kai Pastor 2023-06-22 07:31:23 +02:00 committed by GitHub
parent d044127afe
commit 4cdccc30bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,6 @@
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_minimum_required(VERSION 2022-11-10)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -24,6 +23,10 @@ vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Catch2)
vcpkg_fixup_pkgconfig()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/catch2-with-main.pc" [["-L${libdir}"]] [["-L${libdir}/manual-link"]])
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/catch2-with-main.pc" [["-L${libdir}"]] [["-L${libdir}/manual-link"]])
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

View File

@ -1,6 +1,7 @@
{
"name": "catch2",
"version-semver": "3.3.2",
"port-version": 1,
"description": "A modern, header-only test framework for unit testing.",
"homepage": "https://github.com/catchorg/Catch2",
"license": "BSL-1.0",

View File

@ -1402,7 +1402,7 @@
},
"catch2": {
"baseline": "3.3.2",
"port-version": 0
"port-version": 1
},
"cccapstone": {
"baseline": "9b4128ee1153e78288a1b5433e2c06a0d47a4c4e",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8dc2e0cb32d0c1e0a12684a3628c926157f36ddd",
"version-semver": "3.3.2",
"port-version": 1
},
{
"git-tree": "e776d4cb313c846f6de82c05fa2ab9b7748edb6b",
"version-semver": "3.3.2",