mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
fix highfive in static builds.
HDF5_USE_STATIC_LIBRARIES must be set in static builds so that find_package(HDF5) finds the static hdf5 libraries
This commit is contained in:
parent
7419fc975c
commit
9ac08b34ce
@ -1,4 +1,4 @@
|
||||
Source: highfive
|
||||
Version: 1.5
|
||||
Version: 1.5-1
|
||||
Description: HighFive is a modern C++/C++11 friendly interface for libhdf5
|
||||
Build-Depends: hdf5
|
||||
|
@ -8,6 +8,10 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(${VCPKG_LIBRARY_LINKAGE} MATCHES "static")
|
||||
set(HDF5_USE_STATIC_LIBRARIES ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
@ -16,6 +20,7 @@ vcpkg_configure_cmake(
|
||||
-DHIGHFIVE_EXAMPLES=OFF
|
||||
-DUSE_BOOST=OFF
|
||||
-DHIGH_FIVE_DOCUMENTATION=OFF
|
||||
-DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
@ -23,6 +28,9 @@ vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/HighFive/CMake)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
if(NOT WIN32)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/HighFive)
|
||||
endif()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/highfive RENAME copyright)
|
||||
|
Loading…
x
Reference in New Issue
Block a user