mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 20:41:04 -04:00
Linking cleanup
This commit is contained in:
parent
0d50906c14
commit
046c9571da
@ -70,6 +70,10 @@ pkg_check_modules(LIBLZMA IMPORTED_TARGET liblzma>=5.2.4)
|
|||||||
find_path(SPARSEHASH_INCLUDE_DIR sparsehash/dense_hash_map REQUIRED)
|
find_path(SPARSEHASH_INCLUDE_DIR sparsehash/dense_hash_map REQUIRED)
|
||||||
find_program(RONN_EXE ronn)
|
find_program(RONN_EXE ronn)
|
||||||
|
|
||||||
|
set(ZSTD_INCLUDE_DIR
|
||||||
|
""
|
||||||
|
CACHE PATH "don't build folly with zstd" FORCE)
|
||||||
|
|
||||||
set(compiler_only
|
set(compiler_only
|
||||||
ON
|
ON
|
||||||
CACHE BOOL "only build thrift compiler")
|
CACHE BOOL "only build thrift compiler")
|
||||||
@ -78,6 +82,13 @@ add_subdirectory(folly EXCLUDE_FROM_ALL)
|
|||||||
add_subdirectory(fbthrift EXCLUDE_FROM_ALL)
|
add_subdirectory(fbthrift EXCLUDE_FROM_ALL)
|
||||||
add_subdirectory(zstd/build/cmake EXCLUDE_FROM_ALL)
|
add_subdirectory(zstd/build/cmake EXCLUDE_FROM_ALL)
|
||||||
|
|
||||||
|
set(ZSTD_LIBRARY_RELEASE
|
||||||
|
"ZSTD_LIBRARY_RELEASE-NOTFOUND"
|
||||||
|
CACHE FILEPATH "don't build folly with zstd" FORCE)
|
||||||
|
set(ZSTD_LIBRARY_DEBUG
|
||||||
|
"ZSTD_LIBRARY_DEBUG-NOTFOUND"
|
||||||
|
CACHE FILEPATH "don't build folly with zstd" FORCE)
|
||||||
|
|
||||||
if(WITH_TESTS)
|
if(WITH_TESTS)
|
||||||
# Download and unpack googletest at configure time
|
# Download and unpack googletest at configure time
|
||||||
configure_file(CMakeLists.txt.gtest googletest-download/CMakeLists.txt)
|
configure_file(CMakeLists.txt.gtest googletest-download/CMakeLists.txt)
|
||||||
@ -307,23 +318,29 @@ endforeach()
|
|||||||
target_compile_definitions(dwarfs-bin PRIVATE FUSE_USE_VERSION=35
|
target_compile_definitions(dwarfs-bin PRIVATE FUSE_USE_VERSION=35
|
||||||
_FILE_OFFSET_BITS=64)
|
_FILE_OFFSET_BITS=64)
|
||||||
|
|
||||||
foreach(tgt ${BINARY_TARGETS})
|
target_link_libraries(
|
||||||
target_link_libraries(
|
${tgt}
|
||||||
${tgt}
|
dwarfs
|
||||||
dwarfs
|
metadata_thrift
|
||||||
metadata_thrift
|
thrift_light
|
||||||
thrift_light
|
folly
|
||||||
folly
|
${Boost_LIBRARIES}
|
||||||
${Boost_LIBRARIES}
|
libzstd_static
|
||||||
libzstd_static
|
PkgConfig::LIBLZ4
|
||||||
PkgConfig::LIBLZ4
|
PkgConfig::LIBLZMA)
|
||||||
PkgConfig::LIBLZMA)
|
|
||||||
|
|
||||||
if(WITH_PYTHON)
|
target_link_libraries(dwarfs-bin dwarfs)
|
||||||
target_link_libraries(${tgt} ${BOOST_PYTHON_LIBS} ${Python3_LIBRARIES})
|
|
||||||
endif()
|
foreach(tgt mkdwarfs dwarfsck dwarfsbench dwarfs_test dwarfs_compat_test)
|
||||||
|
target_link_libraries(${tgt} dwarfs)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
if(WITH_PYTHON)
|
||||||
|
foreach(tgt mkdwarfs dwarfs_test dwarfs_compat_test)
|
||||||
|
target_link_libraries(${tgt} ${BOOST_PYTHON_LIBS} ${Python3_LIBRARIES})
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(dwarfs-bin PkgConfig::FUSE3)
|
target_link_libraries(dwarfs-bin PkgConfig::FUSE3)
|
||||||
|
|
||||||
set_target_properties(dwarfs-bin PROPERTIES OUTPUT_NAME dwarfs)
|
set_target_properties(dwarfs-bin PROPERTIES OUTPUT_NAME dwarfs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user