build: more cmake cleanups

This commit is contained in:
Marcus Holland-Moritz 2024-05-15 12:25:24 +02:00
parent ba4955fb32
commit 71ae7b8ce0
2 changed files with 1 additions and 7 deletions

View File

@ -979,11 +979,6 @@ add_cpp2_thrift_library(thrift/history.thrift
add_cpp2_thrift_library(thrift/features.thrift
TARGET features_thrift OUTPUT_PATH dwarfs)
target_link_libraries(metadata_thrift thrift_light)
target_link_libraries(compression_thrift thrift_light)
target_link_libraries(history_thrift thrift_light)
target_link_libraries(features_thrift thrift_light)
target_link_libraries(dwarfs_categorizer metadata_thrift)
foreach(tgt dwarfs dwarfs_compression dwarfs_categorizer

View File

@ -126,12 +126,11 @@ function(add_cpp2_thrift_library idlfile)
if(NOT _THRIFT_NO_LIBRARY)
add_library(${_THRIFT_TARGET} ${_THRIFT_LIB_SRC})
target_include_directories(${_THRIFT_TARGET} PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/folly
${CMAKE_CURRENT_BINARY_DIR}/thrift
${CMAKE_CURRENT_SOURCE_DIR}/folly
${CMAKE_CURRENT_SOURCE_DIR}/fbthrift
${CMAKE_CURRENT_BINARY_DIR}
)
target_link_libraries(${_THRIFT_TARGET} PUBLIC thrift_light)
if(NOT WIN32)
target_compile_options(${_THRIFT_TARGET} PRIVATE -Wno-deprecated-declarations)
endif()