cmake: do not always build brotli or zstd

these two libraries are relatively stable, and Ceph developers are not
likely to hack them. so no need to rebuild them every time.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-07-11 19:31:47 +08:00
parent 6958d2dcb1
commit 70979b7543
2 changed files with 0 additions and 13 deletions

View File

@ -16,12 +16,6 @@ ExternalProject_Add(brotli_ext
BUILD_IN_SOURCE 1
INSTALL_COMMAND "")
ExternalProject_Add_Step(brotli_ext forcebuild
DEPENDEES configure
DEPENDERS build
COMMAND "true"
ALWAYS 1)
set(bortli_libs enc dec common)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/src/brotli/c/include")
foreach(lib ${bortli_libs})

View File

@ -17,13 +17,6 @@ ExternalProject_Add(zstd_ext
BUILD_BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/libzstd/lib/libzstd.a"
INSTALL_COMMAND "true")
# force zstd make to be called on each time
ExternalProject_Add_Step(zstd_ext forcebuild
DEPENDEES configure
DEPENDERS build
COMMAND "true"
ALWAYS 1)
add_library(zstd STATIC IMPORTED)
set_target_properties(zstd PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/src/zstd/lib"