Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[highfive] Add eigen3 feature option #21897

Merged
merged 13 commits into from
Dec 10, 2021
13 changes: 13 additions & 0 deletions ports/highfive/fix-error-C1128.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d42b6e..0fd3f4c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,8 @@ option(HIGHFIVE_BUILD_DOCS "Enable documentation building" ON)
option(HIGHFIVE_USE_INSTALL_DEPS "End applications by default use detected dependencies here" OFF)
mark_as_advanced(HIGHFIVE_USE_INSTALL_DEPS)

+# Allow big object
+add_definitions(/bigobj)
JonLiu1993 marked this conversation as resolved.
Show resolved Hide resolved

# Check compiler cxx_std requirements
# -----------------------------------
8 changes: 4 additions & 4 deletions ports/highfive/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ vcpkg_from_github(
REF v2.3
SHA512 5bf8bc6d3a57be39a4fd15f28f8c839706e2c8d6e2270f45ea39c28a2ac1e3c7f31ed2f48390a45a868c714c85f03f960a0bc8fad945c80b41f495e6f4aca36a
HEAD_REF master
PATCHES fix-dependency-hdf5.patch
PATCHES
fix-dependency-hdf5.patch
fix-error-C1128.patch
)

vcpkg_check_features(
Expand All @@ -13,17 +15,15 @@ vcpkg_check_features(
boost HIGHFIVE_USE_BOOST
tests HIGHFIVE_UNIT_TESTS
xtensor HIGHFIVE_USE_XTENSOR
eigen3 HIGHFIVE_USE_EIGEN
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" HDF5_USE_STATIC_LIBRARIES)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
JonLiu1993 marked this conversation as resolved.
Show resolved Hide resolved
OPTIONS
${FEATURE_OPTIONS}
-DHIGHFIVE_EXAMPLES=OFF
-DHIGHFIVE_BUILD_DOCS=OFF
-DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
)

vcpkg_cmake_install()
Expand Down
8 changes: 8 additions & 0 deletions ports/highfive/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "highfive",
"version": "2.3",
"port-version": 1,
"description": "HighFive is a modern header-only C++/C++11 friendly interface for libhdf5",
"homepage": "https://github.com/BlueBrain/HighFive",
"license": "BSL-1.0",
Expand All @@ -21,9 +22,16 @@
"dependencies": [
"boost-multi-array",
"boost-serialization",
"boost-system",
"boost-ublas"
]
},
"eigen3": {
"description": "Enable Eigen testing",
"dependencies": [
"eigen3"
]
},
"tests": {
"description": "Build unit tests",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2690,7 +2690,7 @@
},
"highfive": {
"baseline": "2.3",
"port-version": 0
"port-version": 1
},
"highway": {
"baseline": "0.14.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/h-/highfive.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ccdcfa177fc48552d13cee2a9759d4fb14dbbe3a",
"version": "2.3",
"port-version": 1
},
{
"git-tree": "76c01340920e595af976269dec82132f192a4705",
"version": "2.3",
Expand Down