diff options
| author | Rayan <yweiyun@163.com> | 2021-09-04 08:01:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-03 17:01:51 -0700 |
| commit | 38d6712d5644ede4ff597e889549f5d540dcf8ff (patch) | |
| tree | 70adc74906d2e436254819e0b8344d891b7573bc /ports | |
| parent | 01198e2497d3b78ed399409fe70631126028687c (diff) | |
| download | vcpkg-38d6712d5644ede4ff597e889549f5d540dcf8ff.tar.gz vcpkg-38d6712d5644ede4ff597e889549f5d540dcf8ff.zip | |
[catch2] Guard build type for Catch2 (#19793)
* guard build type for catch2
* update port-version
* update baseline & version
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/catch2/portfile.cmake | 13 | ||||
| -rw-r--r-- | ports/catch2/vcpkg.json | 1 |
2 files changed, 9 insertions, 5 deletions
diff --git a/ports/catch2/portfile.cmake b/ports/catch2/portfile.cmake index b157b48cd..140e1cba1 100644 --- a/ports/catch2/portfile.cmake +++ b/ports/catch2/portfile.cmake @@ -18,11 +18,14 @@ vcpkg_cmake_configure( ) vcpkg_cmake_install() - -file(RENAME "${CURRENT_PACKAGES_DIR}/share/Catch2" "${CURRENT_PACKAGES_DIR}/share/catch2_") -file(RENAME "${CURRENT_PACKAGES_DIR}/share/catch2_" "${CURRENT_PACKAGES_DIR}/share/catch2") -file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/Catch2" "${CURRENT_PACKAGES_DIR}/debug/share/catch2_") -file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/catch2_" "${CURRENT_PACKAGES_DIR}/debug/share/catch2") +if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") + file(RENAME "${CURRENT_PACKAGES_DIR}/share/Catch2" "${CURRENT_PACKAGES_DIR}/share/catch2_") + file(RENAME "${CURRENT_PACKAGES_DIR}/share/catch2_" "${CURRENT_PACKAGES_DIR}/share/catch2") +endif() +if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/Catch2" "${CURRENT_PACKAGES_DIR}/debug/share/catch2_") + file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/catch2_" "${CURRENT_PACKAGES_DIR}/debug/share/catch2") +endif() vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/Catch2") vcpkg_fixup_pkgconfig() diff --git a/ports/catch2/vcpkg.json b/ports/catch2/vcpkg.json index dc2af5075..83dd9ff3d 100644 --- a/ports/catch2/vcpkg.json +++ b/ports/catch2/vcpkg.json @@ -1,6 +1,7 @@ { "name": "catch2", "version-semver": "2.13.7", + "port-version": 1, "description": "A modern, header-only test framework for unit testing.", "homepage": "https://github.com/catchorg/Catch2", "dependencies": [ |
