Merge pull request #2707 from michalo2882/master

[hdf5] add cpp feature
This commit is contained in:
Robert Schumacher 2018-02-01 09:40:31 -08:00 committed by GitHub
commit 392a95a3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -6,3 +6,6 @@ Build-Depends: zlib, szip
Feature: parallel
Description: parallel support for HDF5
Build-Depends: msmpi
Feature: cpp
Description: Builds cpp lib

View File

@ -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