diff --git a/CMakeLists.txt b/CMakeLists.txt index 02f0710ba..29e313067 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,7 +95,7 @@ target_include_directories(fb303 PUBLIC ) target_link_libraries(fb303 - fb303_thrift_cpp + fb303_core_cpp Folly::folly FBThrift::thrift ) diff --git a/fb303/thrift/CMakeLists.txt b/fb303/thrift/CMakeLists.txt index 220434a4b..32e1d26ce 100644 --- a/fb303/thrift/CMakeLists.txt +++ b/fb303/thrift/CMakeLists.txt @@ -13,13 +13,13 @@ # limitations under the License. if (PYTHON_EXTENSIONS) - set(FB303_LANG cpp py) + set(FB303_LANG cpp py py3) else () set(FB303_LANG cpp) endif () add_fbthrift_library( - fb303_thrift + fb303_core fb303_core.thrift LANGUAGES ${FB303_LANG} THRIFT_INCLUDE_DIR "${INCLUDE_INSTALL_DIR}/thrift-files" @@ -27,30 +27,36 @@ add_fbthrift_library( BaseService ) if (BUILD_SHARED_LIBS) - set_property(TARGET fb303_thrift_cpp PROPERTY VERSION ${PACKAGE_VERSION}) + set_property(TARGET fb303_core_cpp PROPERTY VERSION ${PACKAGE_VERSION}) endif () install( - TARGETS fb303_thrift_cpp + TARGETS fb303_core_cpp EXPORT fb303-exports LIBRARY DESTINATION "${LIB_INSTALL_DIR}" ARCHIVE DESTINATION "${LIB_INSTALL_DIR}" PUBLIC_HEADER DESTINATION - "$" + "$" ) install( - TARGETS fb303_thrift_cpp.thrift_includes + TARGETS fb303_core_cpp.thrift_includes EXPORT fb303-exports ) install( FILES fb303_core.thrift - DESTINATION "$" + DESTINATION "$" ) if (PYTHON_EXTENSIONS) - install_fb_python_library(fb303_thrift_py EXPORT fb303-exports) + install_fb_python_library(fb303_core_py EXPORT fb303-exports) install( - TARGETS fb303_thrift_py.thrift_includes + TARGETS fb303_core_py.thrift_includes + EXPORT fb303-exports + ) + + install_fb_python_library(fb303_core_py3 EXPORT fb303-exports) + install( + TARGETS fb303_core_py3.thrift_includes EXPORT fb303-exports ) endif ()