correct hdf5 usage in netcdf-cxx4

This commit is contained in:
Alexander Neumann 2019-03-14 22:33:56 +01:00
parent 6c3c6737ba
commit 1ee65c19dd
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: netcdf-cxx4
Version: 4.3.0-1
Version: 4.3.0-2
Build-Depends: netcdf-c
Description: a set of machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.

View File

@ -6,6 +6,10 @@
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
#
if(${VCPKG_LIBRARY_LINKAGE} MATCHES "static")
set(HDF5_USE_STATIC_LIBRARIES ON)
endif()
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
message(STATUS "Warning: DLLs not supported yet. Building static.")
set(VCPKG_LIBRARY_LINKAGE static)
@ -31,6 +35,7 @@ vcpkg_configure_cmake(
OPTIONS
-DNCXX_ENABLE_TESTS=OFF
-DCMAKE_INSTALL_CMAKECONFIGDIR=share/netCDFCxx
-DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
# OPTIONS_RELEASE -DOPTIMIZE=1
# OPTIONS_DEBUG -DDEBUGGABLE=1
)