aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssowski, Michal <michal.ossowski@intel.com>2018-02-01 15:48:40 +0100
committerOssowski, Michal <michal.ossowski@intel.com>2018-02-01 15:48:40 +0100
commitfbe876646601ea1426679793d44dec7cd3852ddf (patch)
treea179e91b0ed08d31f60d30454229edaca18bc60d
parent1d8137d51390f866dc05b9071f664ce49e65d9ca (diff)
downloadvcpkg-fbe876646601ea1426679793d44dec7cd3852ddf.tar.gz
vcpkg-fbe876646601ea1426679793d44dec7cd3852ddf.zip
[hdf5] add cpp feature
Required for building caffe
-rw-r--r--ports/hdf5/CONTROL3
-rw-r--r--ports/hdf5/portfile.cmake8
2 files changed, 10 insertions, 1 deletions
diff --git a/ports/hdf5/CONTROL b/ports/hdf5/CONTROL
index b9744407a..1d86a5edf 100644
--- a/ports/hdf5/CONTROL
+++ b/ports/hdf5/CONTROL
@@ -6,3 +6,6 @@ Build-Depends: zlib, szip
Feature: parallel
Description: parallel support for HDF5
Build-Depends: msmpi
+
+Feature: cpp
+Description: Builds cpp lib
diff --git a/ports/hdf5/portfile.cmake b/ports/hdf5/portfile.cmake
index 15f2399f2..1da61178b 100644
--- a/ports/hdf5/portfile.cmake
+++ b/ports/hdf5/portfile.cmake
@@ -27,6 +27,12 @@ else()
set(ENABLE_PARALLEL OFF)
endif()
+if ("cpp" IN_LIST FEATURES)
+ set(ENABLE_CPP ON)
+else()
+ set(ENABLE_CPP OFF)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -35,7 +41,7 @@ vcpkg_configure_cmake(
-DDISABLE_STATIC_LIBS=${DISABLE_STATIC_LIBS}
-DHDF5_BUILD_EXAMPLES=OFF
-DHDF5_BUILD_TOOLS=OFF
- -DHDF5_BUILD_CPP_LIB=OFF
+ -DHDF5_BUILD_CPP_LIB=${ENABLE_CPP}
-DHDF5_ENABLE_PARALLEL=${ENABLE_PARALLEL}
-DHDF5_ENABLE_Z_LIB_SUPPORT=ON
-DHDF5_ENABLE_SZIP_SUPPORT=ON