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/fix-export-targets.patch | |
| parent | d9f832bc05367beea56e2a6b57c258d31f627969 (diff) | |
| download | vcpkg-b011565aeccb6571fb2567bf7c4bbae8bb5a93ce.tar.gz vcpkg-b011565aeccb6571fb2567bf7c4bbae8bb5a93ce.zip | |
[log4cpp] find_package support (#15650)
Diffstat (limited to 'ports/log4cpp/fix-export-targets.patch')
| -rw-r--r-- | ports/log4cpp/fix-export-targets.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ports/log4cpp/fix-export-targets.patch b/ports/log4cpp/fix-export-targets.patch new file mode 100644 index 000000000..30b5320cd --- /dev/null +++ b/ports/log4cpp/fix-export-targets.patch @@ -0,0 +1,18 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 19767a0..59dbf6c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -161,11 +161,13 @@ INSTALL ( + ) + + INSTALL(TARGETS ${LOG4CPP_LIBRARY_NAME} ++ EXPORT log4cpp-targets + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + RUNTIME DESTINATION bin) + + INSTALL(FILES package.xml DESTINATION share/log4cpp) ++INSTALL(EXPORT log4cpp-targets NAMESPACE log4cpp:: DESTINATION share/log4cpp) + + ########################################################### + # DOCUMENTATION |
