mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 05:59:07 +08:00
Merge pull request #2707 from michalo2882/master
[hdf5] add cpp feature
This commit is contained in:
commit
392a95a3c7
@ -6,3 +6,6 @@ Build-Depends: zlib, szip
|
||||
Feature: parallel
|
||||
Description: parallel support for HDF5
|
||||
Build-Depends: msmpi
|
||||
|
||||
Feature: cpp
|
||||
Description: Builds cpp lib
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user