Skip to content

Commit

Permalink
Merge pull request microsoft#7670 from PhoebeHui/dev/Phoebe/fixspdlog
Browse files Browse the repository at this point in the history
[spdlog] fix cmake targets path
  • Loading branch information
cbezault authored Aug 15, 2019
2 parents e236942 + 7291a25 commit 852e817
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/spdlog/CONTROL
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion ports/spdlog/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 852e817

Please sign in to comment.