fix duplicate library can't import
All checks were successful
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 32s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 35s

This commit is contained in:
tqcq 2024-03-07 10:10:16 +08:00
parent 0ef5b929c2
commit 284bcf3972

View File

@ -14,8 +14,13 @@ set(BUILD_UNIT_TESTS OFF)
set(BUILD_EXAMPLES OFF)
add_library(sled STATIC "")
add_subdirectory(3party/rpc_core EXCLUDE_FROM_ALL)
add_subdirectory(3party/fmt EXCLUDE_FROM_ALL)
if (NOT TARGET rpc_core)
add_subdirectory(3party/rpc_core EXCLUDE_FROM_ALL)
endif()
if (NOT TARGET fmt)
add_subdirectory(3party/fmt EXCLUDE_FROM_ALL)
endif()
# add_subdirectory(3party/eigen EXCLUDE_FROM_ALL)
target_include_directories(sled PUBLIC 3party/eigen)
target_sources(