diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/opencc/fix-dependencies.patch | |
Diffstat (limited to 'vcpkg/ports/opencc/fix-dependencies.patch')
| -rw-r--r-- | vcpkg/ports/opencc/fix-dependencies.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/opencc/fix-dependencies.patch b/vcpkg/ports/opencc/fix-dependencies.patch new file mode 100644 index 0000000..581a993 --- /dev/null +++ b/vcpkg/ports/opencc/fix-dependencies.patch @@ -0,0 +1,35 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 7768c89..70292d6 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -115,7 +115,7 @@ add_library(libopencc ${LIBOPENCC_SOURCES} ${LIBOPENCC_HEADERS}) + add_library(OpenCC::OpenCC ALIAS libopencc) + set_target_properties(libopencc PROPERTIES POSITION_INDEPENDENT_CODE ON) + source_group(libopencc FILES ${LIBOPENCC_SOURCES} ${LIBOPENCC_HEADERS}) +-target_link_libraries(libopencc marisa) ++target_link_libraries(libopencc ${LIBMARISA}) + target_include_directories(libopencc PUBLIC + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> + $<INSTALL_INTERFACE:${DIR_INCLUDE}/opencc> +@@ -144,6 +144,21 @@ set_target_properties( + ${OPENCC_VERSION_MAJOR}.${OPENCC_VERSION_MINOR} + ) + ++if(USE_SYSTEM_RAPIDJSON) ++ find_package(RapidJSON CONFIG REQUIRED) ++ target_link_libraries(libopencc rapidjson) ++endif() ++ ++if(USE_SYSTEM_TCLAP) ++ find_path(TCLAP_INCLUDE_DIRS "tclap/Arg.h") ++ target_include_directories(libopencc PUBLIC ${TCLAP_INCLUDE_DIRS}) ++endif() ++ ++if(USE_SYSTEM_DARTS) ++ find_path(DARTS_INCLUDE_DIRS "darts.h") ++ target_include_directories(libopencc PUBLIC ${DARTS_INCLUDE_DIRS}) ++endif() ++ + # Installation + + if (USE_SYSTEM_MARISA) |