2021-03-22 12:36:42 +00:00
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
set(_build_shared ON)
|
|
|
|
set(_build_static OFF)
|
|
|
|
else()
|
|
|
|
set(_build_shared OFF)
|
|
|
|
set(_build_static ON)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
prusaslicer_add_cmake_project(Blosc
|
2021-03-23 18:01:18 +00:00
|
|
|
# GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
|
|
|
|
# GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
|
|
|
|
URL https://github.com/Blosc/c-blosc/archive/refs/tags/v1.17.0.zip
|
|
|
|
URL_HASH SHA256=7463a1df566704f212263312717ab2c36b45d45cba6cd0dccebf91b2cc4b4da9
|
2021-03-22 12:36:42 +00:00
|
|
|
DEPENDS ${ZLIB_PKG}
|
2021-03-23 18:01:18 +00:00
|
|
|
PATCH_COMMAND #${GIT_EXECUTABLE} reset --hard && ${GIT_EXECUTABLE} clean -df &&
|
|
|
|
#${GIT_EXECUTABLE} apply --whitespace=nowarn ${CMAKE_CURRENT_LIST_DIR}/blosc-mods.patch
|
|
|
|
${GIT_EXECUTABLE} apply --ignore-space-change --whitespace=fix ${CMAKE_CURRENT_LIST_DIR}/blosc-mods.patch
|
2021-03-22 12:36:42 +00:00
|
|
|
CMAKE_ARGS
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
-DBUILD_SHARED=${_build_shared}
|
|
|
|
-DBUILD_STATIC=${_build_static}
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_BENCHMARKS=OFF
|
|
|
|
-DPREFER_EXTERNAL_ZLIB=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
add_debug_dep(dep_Blosc)
|
|
|
|
endif ()
|