vcpkg/ports/drogon/vcpkg.patch
An Tao 7a28379b4c
[Drogon] Add new port (#12024)
* [Drogon] Add new port

* Update version

* Use cmake options instead of patching
2020-06-23 13:03:23 -07:00

17 lines
496 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index aab915d..4daeb87 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,9 +64,9 @@ if(WIN32)
PRIVATE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third_party/mman-win32>)
endif(WIN32)
-add_subdirectory(trantor)
+find_package(Trantor CONFIG REQUIRED)
-target_link_libraries(${PROJECT_NAME} PUBLIC trantor)
+target_link_libraries(${PROJECT_NAME} PUBLIC Trantor::Trantor)
if(NOT WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE dl)