vcpkg/ports/opencc/fix-dependencies.patch

17 lines
355 B
Diff
Raw Normal View History

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 11d14e4..fde4b7b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -137,6 +137,11 @@ set_target_properties(
1.1
)
+if(USE_SYSTEM_RAPIDJSON)
+ find_package(RapidJSON CONFIG REQUIRED)
+ target_link_libraries(libopencc PRIVATE rapidjson)
+endif()
+
# Installation
install(