2020-05-13 07:22:58 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2021-09-08 23:00:54 +08:00
|
|
|
index d9bf7b5..eb2692c 100644
|
2020-05-13 07:22:58 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-09-08 23:00:54 +08:00
|
|
|
@@ -60,7 +60,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND
|
2020-05-13 07:22:58 +08:00
|
|
|
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()
|
2021-09-08 23:00:54 +08:00
|
|
|
@@ -273,6 +273,9 @@ if(JAEGERTRACING_PLUGIN)
|
2020-05-13 07:22:58 +08:00
|
|
|
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
|
2021-09-08 23:00:54 +08:00
|
|
|
@@ -418,7 +421,7 @@ include(GNUInstallDirs)
|
2020-05-13 07:22:58 +08:00
|
|
|
# * <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")
|
|
|
|
|