mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[catch2] Fix catch2-with-main.pc (#32047)
This commit is contained in:
parent
d044127afe
commit
4cdccc30bd
@ -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")
|
||||
|
@ -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",
|
||||
|
@ -1402,7 +1402,7 @@
|
||||
},
|
||||
"catch2": {
|
||||
"baseline": "3.3.2",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"cccapstone": {
|
||||
"baseline": "9b4128ee1153e78288a1b5433e2c06a0d47a4c4e",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8dc2e0cb32d0c1e0a12684a3628c926157f36ddd",
|
||||
"version-semver": "3.3.2",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "e776d4cb313c846f6de82c05fa2ab9b7748edb6b",
|
||||
"version-semver": "3.3.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user