aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-06-17 11:31:14 -0700
committerPhil Christensen <philc@microsoft.com>2019-06-17 11:31:14 -0700
commitba0b34c2e88c50626bb38a6f21ffcc7b2f93ad4d (patch)
treeebd3744d907869ad7f2d82e31cfdb84505417a7d
parentec5e9c282c1470b831ab55c8b93e087f125b2599 (diff)
downloadvcpkg-ba0b34c2e88c50626bb38a6f21ffcc7b2f93ad4d.tar.gz
vcpkg-ba0b34c2e88c50626bb38a6f21ffcc7b2f93ad4d.zip
[blosc] Fix the bug when building release-only. (#6928)
-rw-r--r--ports/blosc/CONTROL2
-rw-r--r--ports/blosc/portfile.cmake16
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