mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 12:28:13 -04:00
build: more CMake cleanups
This commit is contained in:
parent
8e963e43fa
commit
b8936a7ce8
@ -504,7 +504,7 @@ add_library(folly_light
|
||||
|
||||
set_property(TARGET folly_light PROPERTY CXX_STANDARD 20)
|
||||
target_include_directories(
|
||||
folly_light SYSTEM PRIVATE
|
||||
folly_light SYSTEM PUBLIC
|
||||
${CMAKE_CURRENT_BINARY_DIR}/folly
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/folly
|
||||
)
|
||||
@ -552,11 +552,6 @@ endif()
|
||||
|
||||
add_library(follybenchmark_lite ${FOLLY_BENCHMARK_LITE_SRC})
|
||||
set_property(TARGET follybenchmark_lite PROPERTY CXX_STANDARD 20)
|
||||
target_include_directories(
|
||||
follybenchmark_lite SYSTEM PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/folly
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/folly
|
||||
)
|
||||
apply_folly_compile_options_to_target(follybenchmark_lite)
|
||||
target_link_libraries(follybenchmark_lite folly_light)
|
||||
|
||||
@ -1021,7 +1016,7 @@ add_library(
|
||||
set_property(TARGET thrift_light PROPERTY CXX_STANDARD 20)
|
||||
target_link_libraries(thrift_light folly_light)
|
||||
|
||||
target_include_directories(thrift_light SYSTEM PRIVATE
|
||||
target_include_directories(thrift_light SYSTEM PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fbthrift
|
||||
${THRIFT_GENERATED_DIR}
|
||||
)
|
||||
|
@ -135,9 +135,7 @@ function(add_cpp2_thrift_library idlfile)
|
||||
add_library(${_THRIFT_TARGET} ${_THRIFT_LIB_SRC})
|
||||
target_include_directories(${_THRIFT_TARGET} PUBLIC
|
||||
${CMAKE_CURRENT_BINARY_DIR}/thrift
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fbthrift
|
||||
${_THRIFT_GENERATED_DIR}/thrift
|
||||
${_THRIFT_GENERATED_DIR}
|
||||
)
|
||||
target_link_libraries(${_THRIFT_TARGET} PUBLIC thrift_light)
|
||||
if(NOT WIN32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user