diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-06-17 11:31:14 -0700 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-06-17 11:31:14 -0700 |
| commit | ba0b34c2e88c50626bb38a6f21ffcc7b2f93ad4d (patch) | |
| tree | ebd3744d907869ad7f2d82e31cfdb84505417a7d | |
| parent | ec5e9c282c1470b831ab55c8b93e087f125b2599 (diff) | |
| download | vcpkg-ba0b34c2e88c50626bb38a6f21ffcc7b2f93ad4d.tar.gz vcpkg-ba0b34c2e88c50626bb38a6f21ffcc7b2f93ad4d.zip | |
[blosc] Fix the bug when building release-only. (#6928)
| -rw-r--r-- | ports/blosc/CONTROL | 2 | ||||
| -rw-r--r-- | ports/blosc/portfile.cmake | 16 |
2 files changed, 10 insertions, 8 deletions
diff --git a/ports/blosc/CONTROL b/ports/blosc/CONTROL index 7c0d95842..4dc7bf81f 100644 --- a/ports/blosc/CONTROL +++ b/ports/blosc/CONTROL @@ -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()` diff --git a/ports/blosc/portfile.cmake b/ports/blosc/portfile.cmake index a0d974b74..367c59194 100644 --- a/ports/blosc/portfile.cmake +++ b/ports/blosc/portfile.cmake @@ -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 |
