diff options
author | Ray Molenkamp <github@lazydodo.com> | 2018-08-12 00:34:11 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2018-08-12 00:34:11 +0300 |
commit | 9d59851ca3d68fdee221f050c9f4a69ca085b432 (patch) | |
tree | b21d0d7b42b8266ba2e8fd2ec5716403b437b954 /build_files/build_environment/cmake/blosc.cmake | |
parent | 9267d29bfbce36a60efdc0843ec5760cec8d8090 (diff) |
build_environment: blosc 1.14.4
Diffstat (limited to 'build_files/build_environment/cmake/blosc.cmake')
-rw-r--r-- | build_files/build_environment/cmake/blosc.cmake | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/build_files/build_environment/cmake/blosc.cmake b/build_files/build_environment/cmake/blosc.cmake index 9a5ef745985..02f98dfe1f3 100644 --- a/build_files/build_environment/cmake/blosc.cmake +++ b/build_files/build_environment/cmake/blosc.cmake @@ -33,7 +33,7 @@ ExternalProject_Add(external_blosc DOWNLOAD_DIR ${DOWNLOAD_DIR} URL_HASH MD5=${BLOSC_HASH} PREFIX ${BUILD_DIR}/blosc - PATCH_COMMAND ${PATCH_CMD} --verbose -p 1 -N -d ${BUILD_DIR}/blosc/src/external_blosc < ${PATCH_DIR}/blosc.diff + #PATCH_COMMAND ${PATCH_CMD} --verbose -p 1 -N -d ${BUILD_DIR}/blosc/src/external_blosc < ${PATCH_DIR}/blosc.diff CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/blosc ${DEFAULT_CMAKE_FLAGS} ${BLOSC_EXTRA_ARGS} INSTALL_DIR ${LIBDIR}/blosc ) @@ -48,3 +48,20 @@ if(WIN32) external_pthreads ) endif() + +if (WIN32) + if(BUILD_MODE STREQUAL Release) + ExternalProject_Add_Step(external_blosc after_install + COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc.lib ${HARVEST_TARGET}/blosc/lib/libblosc.lib + COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/blosc/include/ ${HARVEST_TARGET}/blosc/include/ + DEPENDEES install + ) + endif() + if(BUILD_MODE STREQUAL Debug) + ExternalProject_Add_Step(external_blosc after_install + COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc_d.lib ${HARVEST_TARGET}/blosc/lib/libblosc_d.lib + DEPENDEES install + ) + endif() +endif() + |