mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
correct hdf5 usage in netcdf-cxx4
This commit is contained in:
parent
6c3c6737ba
commit
1ee65c19dd
@ -1,4 +1,4 @@
|
|||||||
Source: netcdf-cxx4
|
Source: netcdf-cxx4
|
||||||
Version: 4.3.0-1
|
Version: 4.3.0-2
|
||||||
Build-Depends: netcdf-c
|
Build-Depends: netcdf-c
|
||||||
Description: a set of machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.
|
Description: a set of machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
# 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")
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||||
message(STATUS "Warning: DLLs not supported yet. Building static.")
|
message(STATUS "Warning: DLLs not supported yet. Building static.")
|
||||||
set(VCPKG_LIBRARY_LINKAGE static)
|
set(VCPKG_LIBRARY_LINKAGE static)
|
||||||
@ -31,6 +35,7 @@ vcpkg_configure_cmake(
|
|||||||
OPTIONS
|
OPTIONS
|
||||||
-DNCXX_ENABLE_TESTS=OFF
|
-DNCXX_ENABLE_TESTS=OFF
|
||||||
-DCMAKE_INSTALL_CMAKECONFIGDIR=share/netCDFCxx
|
-DCMAKE_INSTALL_CMAKECONFIGDIR=share/netCDFCxx
|
||||||
|
-DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
|
||||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user