Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions components/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ if(CLP_NEED_LOG_SURGEON)
endif()
endif()

find_package(lz4 1.10.0 REQUIRED HINTS "${lz4_ROOT}")
message(STATUS "Found lz4 ${lz4_VERSION}")
if(CLP_USE_STATIC_LIBS)
set(lz4_TARGET LZ4::lz4_static)
else()
set(lz4_TARGET LZ4::lz4_shared)
endif()

if(CLP_NEED_NLOHMANN_JSON)
find_package(nlohmann_json REQUIRED)
if(nlohmann_json_FOUND)
Expand Down Expand Up @@ -297,17 +305,12 @@ if(CLP_NEED_YSTDLIB)
add_subdirectory("${CLP_YSTDLIB_SOURCE_DIRECTORY}" "${CMAKE_BINARY_DIR}/ystdlib" EXCLUDE_FROM_ALL)
endif()

# Find and setup ZStd Library
if(CLP_NEED_ZSTD)
if(CLP_USE_STATIC_LIBS)
set(ZStd_USE_STATIC_LIBS ON)
endif()
find_package(ZStd 1.4.4 REQUIRED)
if(ZStd_FOUND)
message(STATUS "Found ZStd ${ZStd_VERSION}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for ZStd")
endif()
find_package(zstd 1.5.7 REQUIRED HINTS "${zstd_ROOT}")
message(STATUS "Found zstd ${zstd_VERSION}")
if(CLP_USE_STATIC_LIBS)
set(zstd_TARGET zstd::libzstd_static)
else()
set(zstd_TARGET zstd::libzstd_shared)
endif()

# Find and setup LZMA Library
Expand Down Expand Up @@ -782,7 +785,7 @@ if(CLP_BUILD_TESTING)
ystdlib::containers
ystdlib::error_handling
${LIBLZMA_LIBRARIES}
ZStd::ZStd
${zstd_TARGET}
)
target_compile_features(unitTest
PRIVATE cxx_std_20
Expand Down
103 changes: 0 additions & 103 deletions components/core/cmake/Modules/FindLZ4.cmake

This file was deleted.

106 changes: 0 additions & 106 deletions components/core/cmake/Modules/FindZStd.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion components/core/src/clp/clg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if(CLP_BUILD_EXECUTABLES)
yaml-cpp
ystdlib::containers
ystdlib::error_handling
ZStd::ZStd
${zstd_TARGET}
)
# Put the built executable at the root of the build directory
set_target_properties(
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp/clo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ if(CLP_BUILD_EXECUTABLES)
clp::string_utils
ystdlib::containers
ystdlib::error_handling
ZStd::ZStd
${zstd_TARGET}
)
# Put the built executable at the root of the build directory
set_target_properties(
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp/clp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ if(CLP_BUILD_EXECUTABLES)
yaml-cpp
ystdlib::containers
ystdlib::error_handling
ZStd::ZStd
${zstd_TARGET}
)
# Put the built executable at the root of the build directory
set_target_properties(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if(CLP_BUILD_EXECUTABLES)
spdlog::spdlog
clp::string_utils
ystdlib::containers
ZStd::ZStd
${zstd_TARGET}
)
# Put the built executable at the root of the build directory
set_target_properties(
Expand Down
8 changes: 6 additions & 2 deletions components/core/src/clp_s/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if(CLP_BUILD_CLP_S_CLP_DEPENDENCIES)
OpenSSL::Crypto
spdlog::spdlog
ystdlib::error_handling
ZStd::ZStd
${zstd_TARGET}
)
endif()

Expand Down Expand Up @@ -182,7 +182,7 @@ if(CLP_BUILD_CLP_S_IO)
clp_s::clp_dependencies
fmt::fmt
spdlog::spdlog
ZStd::ZStd
${zstd_TARGET}
)
endif()

Expand Down Expand Up @@ -250,6 +250,7 @@ if(CLP_BUILD_CLP_S_ARCHIVEWRITER)
${CURL_LIBRARIES}
fmt::fmt
spdlog::spdlog
${zstd_TARGET}
)
endif()

Expand Down Expand Up @@ -313,6 +314,7 @@ if(CLP_BUILD_CLP_S_ARCHIVEREADER)
${CURL_LIBRARIES}
fmt::fmt
spdlog::spdlog
${zstd_TARGET}
)
endif()

Expand Down Expand Up @@ -340,6 +342,7 @@ if(CLP_BUILD_CLP_S_JSONCONSTRUCTOR)
fmt::fmt
${MONGOCXX_TARGET}
spdlog::spdlog
${zstd_TARGET}
)
endif()

Expand Down Expand Up @@ -405,6 +408,7 @@ if(CLP_BUILD_EXECUTABLES)
msgpack-cxx
spdlog::spdlog
ystdlib::error_handling
${zstd_TARGET}
)
set_target_properties(
clp-s
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp_s/indexer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if(CLP_BUILD_EXECUTABLES)
spdlog::spdlog
yaml-cpp
ystdlib::containers
ZStd::ZStd
${zstd_TARGET}
)
# Put the built executable at the root of the build directory
set_target_properties(
Expand Down
1 change: 1 addition & 0 deletions components/core/src/clp_s/search/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ if(CLP_BUILD_CLP_S_SEARCH)
clp_s::clp_dependencies
clp_s::io
spdlog::spdlog
${zstd_TARGET}
)
endif()
2 changes: 1 addition & 1 deletion components/core/src/glt/glt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ if(CLP_BUILD_EXECUTABLES)
clp::string_utils
yaml-cpp
ystdlib::error_handling
ZStd::ZStd
${zstd_TARGET}
)
# Put the built executable at the root of the build directory
set_target_properties(
Expand Down
Loading
Loading