sci-libs/hdf5: workaround build failure with older hdf5 installed

Thanks to upstream for the helpful suggestion!

Bug: https://github.com/HDFGroup/hdf5/issues/1027
Closes: https://bugs.gentoo.org/808633
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-10-12 07:52:24 +01:00
parent 67f37a4652
commit 225b7ee7e5
+4
View File
@@ -67,6 +67,10 @@ pkg_setup() {
src_configure() {
local mycmakeargs=(
# Workaround needed to allow build with USE=fortran when an older
# version is installed. See bug #808633 and
# https://github.com/HDFGroup/hdf5/issues/1027 upstream.
-DCMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE=ON
-DBUILD_STATIC_LIBS=OFF
-DFETCHCONTENT_FULLY_DISCONNECTED=ON
-DHDF5_BUILD_EXAMPLES=OFF