diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt index dd8bbc8..60d9e04 100644 --- a/platform/CMakeLists.txt +++ b/platform/CMakeLists.txt @@ -17,6 +17,8 @@ target_link_libraries(tfe pthread dl MESA_field_stat) target_link_libraries(tfe -Wl,--whole-archive http -Wl,--no-whole-archive) +target_link_libraries(tfe -Wl,--whole-archive pangu-http -Wl,--no-whole-archive) + #target_link_libraries(tfe -Wl,--whole-archive decrypt-mirroring -Wl,--no-whole-archive) install(TARGETS tfe RUNTIME DESTINATION ./) diff --git a/plugin/business/pangu-http/CMakeLists.txt b/plugin/business/pangu-http/CMakeLists.txt index fb43fd8..f064e3e 100644 --- a/plugin/business/pangu-http/CMakeLists.txt +++ b/plugin/business/pangu-http/CMakeLists.txt @@ -1,3 +1,4 @@ add_library(pangu-http pangu_logger.cpp pangu_http.cpp) target_link_libraries(pangu-http common http) -target_link_libraries(pangu-http librdkafka-static ctemplate-static cjson) \ No newline at end of file +target_link_libraries(pangu-http librdkafka-static ctemplate-static cjson) +target_link_libraries(pangu-http maatframe) diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index ddd6514..19dce43 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -177,6 +177,7 @@ file(MAKE_DIRECTORY ${INSTALL_DIR}/include) add_library(librdkafka-static STATIC IMPORTED GLOBAL) set_property(TARGET librdkafka-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/librdkafka.a) set_property(TARGET librdkafka-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include) +set_property(TARGET librdkafka-static PROPERTY INTERFACE_LINK_LIBRARIES ssl crypto sasl2 m z dl pthread rt) ### ctemplate ExternalProject_Add(ctemplate PREFIX ctemplate @@ -185,6 +186,7 @@ ExternalProject_Add(ctemplate PREFIX ctemplate BUILD_COMMAND sh autogen.sh CONFIGURE_COMMAND ./configure --prefix= BUILD_IN_SOURCE 1) + ExternalProject_Get_Property(ctemplate INSTALL_DIR) file(MAKE_DIRECTORY ${INSTALL_DIR}/include)