Merge pull request #7670 from PhoebeHui/dev/Phoebe/fixspdlog

[spdlog] fix cmake targets path
This commit is contained in:
Curtis J Bezault 2019-08-15 10:03:54 -07:00 committed by GitHub
commit 852e817462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
Source: spdlog
Version: 1.3.1-1
Version: 1.3.1-2
Homepage: https://github.com/gabime/spdlog
Description: Very fast, header only, C++ logging library
Build-Depends: fmt

View File

@ -27,7 +27,11 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/spdlog)
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/${PORT}/cmake")
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/${PORT}/cmake)
endif()
vcpkg_copy_pdbs()