[blosc] Fix the bug when building release-only. (#6928)

This commit is contained in:
NancyLi1013 2019-06-17 11:31:14 -07:00 committed by Phil Christensen
parent ec5e9c282c
commit ba0b34c2e8
2 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,5 @@
Source: blosc Source: blosc
Version: 1.16.3 Version: 1.16.3-1
Build-Depends: lz4, snappy, zlib, zstd Build-Depends: lz4, snappy, zlib, zstd
Homepage: https://github.com/Blosc/c-blosc Homepage: https://github.com/Blosc/c-blosc
Description: A blocking, shuffling and loss-less compression library that can be faster than `memcpy()` Description: A blocking, shuffling and loss-less compression library that can be faster than `memcpy()`

View File

@ -32,14 +32,16 @@ vcpkg_configure_cmake(
vcpkg_install_cmake() vcpkg_install_cmake()
vcpkg_copy_pdbs()
if (BLOSC_SHARED) if (BLOSC_SHARED)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin) vcpkg_copy_pdbs()
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin) if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/blosc.dll")
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/blosc.dll ${CURRENT_PACKAGES_DIR}/debug/bin/blosc.dll) file(RENAME ${CURRENT_PACKAGES_DIR}/lib/blosc.dll ${CURRENT_PACKAGES_DIR}/bin/blosc.dll)
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/blosc.dll ${CURRENT_PACKAGES_DIR}/bin/blosc.dll) endif()
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/blosc.dll")
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/blosc.dll ${CURRENT_PACKAGES_DIR}/debug/bin/blosc.dll)
endif()
endif() endif()
# cleanup # cleanup