aboutsummaryrefslogtreecommitdiff
path: root/ports/highfive
diff options
context:
space:
mode:
authorGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-04-12 02:30:59 -0700
committerGitHub <noreply@github.com>2019-04-12 02:30:59 -0700
commit0e000644053015b7f7a0985e14f0bd384c847d17 (patch)
tree7e456fd12b3bf281b28587338f1650017c8b32ab /ports/highfive
parent93ce6b4f27602cd18f4327c2cfd84093d472b8bb (diff)
parent39ba5b2b30c9f7b49e777a62093cdd49d05b53a9 (diff)
downloadvcpkg-0e000644053015b7f7a0985e14f0bd384c847d17.tar.gz
vcpkg-0e000644053015b7f7a0985e14f0bd384c847d17.zip
Merge branch 'master' into master
Diffstat (limited to 'ports/highfive')
-rw-r--r--ports/highfive/CONTROL2
-rw-r--r--ports/highfive/portfile.cmake12
2 files changed, 11 insertions, 3 deletions
diff --git a/ports/highfive/CONTROL b/ports/highfive/CONTROL
index 22c7d616b..af4df7993 100644
--- a/ports/highfive/CONTROL
+++ b/ports/highfive/CONTROL
@@ -1,4 +1,4 @@
Source: highfive
-Version: 1.5
+Version: 2.0
Description: HighFive is a modern C++/C++11 friendly interface for libhdf5
Build-Depends: hdf5
diff --git a/ports/highfive/portfile.cmake b/ports/highfive/portfile.cmake
index 72f644e0e..ed88a45c9 100644
--- a/ports/highfive/portfile.cmake
+++ b/ports/highfive/portfile.cmake
@@ -3,11 +3,15 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO BlueBrain/HighFive
- REF v1.5
- SHA512 4133ec2768f54cb3e56c32f3193d6c61ea96013dc73901c39d31ecaf10b04ea2861b0f6f5c9795985050ef72a75e2d360a4b906c9cdeb8ee49309961e15d39bf
+ REF v2.0
+ SHA512 d6bc38ae421adfa3cb9ee761ec92819bebe385cb100a8227bd9ff436cd7ae31725a96264a7963cfe5ce806cdd3b7978a8a630e9312c1567f6df6029062c6b8a0
HEAD_REF master
)
+if(${VCPKG_LIBRARY_LINKAGE} MATCHES "static")
+ set(HDF5_USE_STATIC_LIBRARIES ON)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -16,6 +20,7 @@ vcpkg_configure_cmake(
-DHIGHFIVE_EXAMPLES=OFF
-DUSE_BOOST=OFF
-DHIGH_FIVE_DOCUMENTATION=OFF
+ -DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
)
vcpkg_install_cmake()
@@ -23,6 +28,9 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/HighFive/CMake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+if(NOT WIN32 AND NOT APPLE)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/HighFive)
+endif()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/highfive RENAME copyright)