mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
15 lines
863 B
Diff
15 lines
863 B
Diff
# 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()
|
|
|