aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/evpp/Export-unofficial-target.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/evpp/Export-unofficial-target.patch')
-rw-r--r--vcpkg/ports/evpp/Export-unofficial-target.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/evpp/Export-unofficial-target.patch b/vcpkg/ports/evpp/Export-unofficial-target.patch
new file mode 100644
index 0000000..a7e0184
--- /dev/null
+++ b/vcpkg/ports/evpp/Export-unofficial-target.patch
@@ -0,0 +1,27 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7a054b3..fa6da0e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -107,3 +107,22 @@ include (packages)
+
+ include (CPack)
+ include (CTest)
++
++install(EXPORT evpp-targets
++ FILE unofficial-evpp-targets.cmake
++ NAMESPACE unofficial::evpp::
++ DESTINATION share/unofficial-evpp
++)
++
++file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-evpp-config.cmake" [[
++include(CMakeFindDependencyMacro)
++find_dependency(glog CONFIG)
++find_dependency(Libevent CONFIG)
++if(UNIX)
++ set(THREADS_PREFER_PTHREAD_FLAG ON)
++ find_dependency(Threads)
++ find_dependency(unofficial-concurrentqueue)
++endif()
++include("${CMAKE_CURRENT_LIST_DIR}/unofficial-evpp-targets.cmake")
++]])
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-evpp-config.cmake DESTINATION "share/unofficial-evpp")