From 91bb8dd872ca3a7f1a9d458217ff81124e1983de Mon Sep 17 00:00:00 2001 From: Simon Maertens Date: Wed, 13 Mar 2024 15:33:49 +0100 Subject: NAG-Fortran: Fix MODULE library creation on Apple platforms Previously we passed `-bundle` to the NAG Fortran front-end, which does not support it. Pass it through to the linker instead. --- Modules/Platform/Apple-NAG-Fortran.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Platform/Apple-NAG-Fortran.cmake b/Modules/Platform/Apple-NAG-Fortran.cmake index 8d3e741..0836e1c 100644 --- a/Modules/Platform/Apple-NAG-Fortran.cmake +++ b/Modules/Platform/Apple-NAG-Fortran.cmake @@ -9,6 +9,7 @@ set(CMAKE_Fortran_COMPILE_OBJECT set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version -Wl,") set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-Wl,-current_version -Wl,") +set(CMAKE_SHARED_MODULE_CREATE_Fortran_FLAGS "-Wl,-bundle") set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-Wl,-shared") set(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-install_name -Wl,") set(CMAKE_Fortran_CREATE_SHARED_LIBRARY -- cgit v0.12