[fmt] Fix build error when build type is release. (#13352)

This commit is contained in:
Matthias C. M. Troffaes 2020-09-05 04:11:41 +01:00 committed by GitHub
parent f2fdeb5283
commit d951a00332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
Source: fmt
Version: 7.0.3
Port-Version: 2
Homepage: https://github.com/fmtlib/fmt
Description: Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.

View File

@ -51,7 +51,7 @@ if(VCPKG_TARGET_IS_WINDOWS)
)
endif()
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/fmt/fmt-targets-debug.cmake
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/fmt/fmt-targets-release.cmake
"lib/fmt.dll"
"bin/fmt.dll"
)