Skip to content

Commit

Permalink
[blosc] Fix the bug when building release-only. (#6928)
Browse files Browse the repository at this point in the history
  • Loading branch information
NancyLi1013 authored and Rastaban committed Jun 17, 2019
1 parent ec5e9c2 commit ba0b34c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ports/blosc/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: blosc
Version: 1.16.3
Version: 1.16.3-1
Build-Depends: lz4, snappy, zlib, zstd
Homepage: https://github.com/Blosc/c-blosc
Description: A blocking, shuffling and loss-less compression library that can be faster than `memcpy()`
16 changes: 9 additions & 7 deletions ports/blosc/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ vcpkg_configure_cmake(

vcpkg_install_cmake()

vcpkg_copy_pdbs()

if (BLOSC_SHARED)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/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)
vcpkg_copy_pdbs()
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/blosc.dll")
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
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()

# cleanup
Expand Down

0 comments on commit ba0b34c

Please sign in to comment.