Files

15 lines
863 B
Diff
Raw Permalink Normal View History

2026-05-19 11:03:57 +02:00
# This patch is to ensure the installation of the Fortran modules.
# It appears necessary since 2.47.0.
# See https://github.com/ecmwf/eccodes/issues/467
--- fortran/CMakeLists.txt.orig 2026-04-22 18:01:11.000000000 +0200
+++ fortran/CMakeLists.txt 2026-04-23 12:40:58.664244087 +0200
@@ -109,7 +109,7 @@ if( HAVE_FORTRAN )
# Install the contents of the fortran module directory
if(ECBUILD_INSTALL_FORTRAN_MODULES)
install( CODE "execute_process(
- COMMAND ${CMAKE_COMMAND} -D MOD_DESTINATION=\${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}
+ COMMAND ${CMAKE_COMMAND} -D MOD_DESTINATION=\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}
-P ${CMAKE_CURRENT_BINARY_DIR}/eccodes_f90_copy_mod.cmake )" )
endif()