1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 02:20:53 +02:00

gnu: hdf5: Fix paths in hdf5-config.cmake.

Fixes: guix/guix#683

Passing an absolute path to -DHDF5_INSTALL_CMAKE_DIR causes the
variable @PACKAGE_SHARE_INSTALL_DIR@ in
config/install/hdf5-config.cmake.in to expand to a path that includes
${PACKAGE_PREFIX_DIR} twice in the generated hdf5-config.cmake.

* gnu/packages/maths.scm (hdf5) [arguments]
<#:configure-flags>: Change -DHDF5_INSTALL_CMAKE_DIR from absolute
path to relative path.

Change-Id: I0c793ad63a4a3d930a560a5094e08f2384f43b38
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Jake Forster 2025-06-26 19:47:20 +09:30 committed by Ludovic Courtès
parent 09a82860e4
commit 53b23512ee
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1956,7 +1956,7 @@ extremely large and complex data collections.")
;; Some of the users, notably Flann, need the C++ interface.
#:configure-flags
#~(list
(string-append "-DHDF5_INSTALL_CMAKE_DIR=" #$output "/lib/cmake")
"-DHDF5_INSTALL_CMAKE_DIR=lib/cmake"
"-DHDF5_BUILD_CPP_LIB=ON"
"-DHDF5_BUILD_FORTRAN=ON"
;; Build a thread-safe library. Unfortunately, CMakeLists.txt