diff options
| author | mannkafai <mannkafai@users.noreply.github.com> | 2021-02-09 10:20:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-08 18:20:17 -0800 |
| commit | b011565aeccb6571fb2567bf7c4bbae8bb5a93ce (patch) | |
| tree | 55d3d8852721ad0455d7051382095c488900302c /ports/log4cpp/portfile.cmake | |
| parent | d9f832bc05367beea56e2a6b57c258d31f627969 (diff) | |
| download | vcpkg-b011565aeccb6571fb2567bf7c4bbae8bb5a93ce.tar.gz vcpkg-b011565aeccb6571fb2567bf7c4bbae8bb5a93ce.zip | |
[log4cpp] find_package support (#15650)
Diffstat (limited to 'ports/log4cpp/portfile.cmake')
| -rw-r--r-- | ports/log4cpp/portfile.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/log4cpp/portfile.cmake b/ports/log4cpp/portfile.cmake index e8de2c0e3..9c9bc600e 100644 --- a/ports/log4cpp/portfile.cmake +++ b/ports/log4cpp/portfile.cmake @@ -10,6 +10,7 @@ vcpkg_from_github( fix-install-targets.patch Fix-StaticSupport.patch fix-includepath.patch + fix-export-targets.patch ) vcpkg_configure_cmake( @@ -21,9 +22,16 @@ vcpkg_install_cmake() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) vcpkg_fixup_cmake_targets(CONFIG_PATH lib/pkgconfig TARGET_PATH share/${PORT}) +vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT}) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) vcpkg_copy_pdbs() +configure_file( + ${CMAKE_CURRENT_LIST_DIR}/log4cpp-config.in.cmake + ${CURRENT_PACKAGES_DIR}/share/${PORT}/log4cpp-config.cmake + @ONLY +) + # Handle copyright file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
