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/jaeger-client-cpp/fix-CMakeLists.patch | |
Diffstat (limited to 'vcpkg/ports/jaeger-client-cpp/fix-CMakeLists.patch')
| -rw-r--r-- | vcpkg/ports/jaeger-client-cpp/fix-CMakeLists.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/jaeger-client-cpp/fix-CMakeLists.patch b/vcpkg/ports/jaeger-client-cpp/fix-CMakeLists.patch new file mode 100644 index 0000000..c35d356 --- /dev/null +++ b/vcpkg/ports/jaeger-client-cpp/fix-CMakeLists.patch @@ -0,0 +1,41 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 53e4598..4220910 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -60,7 +60,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND + endif() + + hunter_add_package(thrift) +-find_package(thrift ${hunter_config} REQUIRED) ++find_package(Thrift CONFIG REQUIRED) + if(HUNTER_ENABLED) + list(APPEND LIBS thrift::thrift_static) + else() +@@ -74,7 +74,7 @@ hunter_add_package(opentracing-cpp) + # OpenTracingConfig.cmake file + find_package(OpenTracing CONFIG REQUIRED) + # Under Windows, link dynamically with OpenTracing +-if (WIN32) ++if (TARGET OpenTracing::opentracing) + list(APPEND LIBS OpenTracing::opentracing) + set(OPENTRACING_LIB OpenTracing::opentracing) + else() +@@ -273,6 +273,9 @@ if(JAEGERTRACING_PLUGIN) + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/export.map + "{ global: OpenTracingMakeTracerFactory; local: *; };") + add_library(jaegertracing_plugin MODULE ${SRC}) ++ if (WIN32) ++ target_link_libraries(jaegertracing_plugin PUBLIC Iphlpapi Ws2_32) ++ endif() + add_lib_deps(jaegertracing_plugin) + target_link_libraries(jaegertracing_plugin PUBLIC + -static-libgcc +@@ -418,7 +421,7 @@ include(GNUInstallDirs) + # * <prefix>/lib*/cmake/<PROJECT-NAME> + # * <prefix>/lib*/ + # * <prefix>/include/ +-set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") ++set(config_install_dir "${CMAKE_INSTALL_DATAROOTDIR}/jaeger-client-cpp") + + set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated") + |