32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
From 84a097f0388f8fbf86aeada640f56132e3776335 Mon Sep 17 00:00:00 2001
|
|
From: Ben Boeckel <ben.boeckel@kitware.com>
|
|
Date: Sun, 10 Sep 2023 21:10:27 -0400
|
|
Subject: [PATCH 6/9] FortranCInterface: forward `CMAKE_OSX_DEPLOYMENT_TARGET`
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
GCC needs to be taught about every macOS release it seems, so older
|
|
builds may not support usage on newer releases by default.
|
|
|
|
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
|
|
---
|
|
Modules/FortranCInterface.cmake | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake
|
|
index 2c85029ed4..81481a7ba7 100644
|
|
--- a/Modules/FortranCInterface.cmake
|
|
+++ b/Modules/FortranCInterface.cmake
|
|
@@ -374,6 +374,7 @@ function(FortranCInterface_VERIFY)
|
|
"-DCMAKE_CXX_FLAGS_RELEASE:STRING=${CMAKE_CXX_FLAGS_RELEASE}"
|
|
"-DCMAKE_Fortran_FLAGS_RELEASE:STRING=${CMAKE_Fortran_FLAGS_RELEASE}"
|
|
"-DFortranCInterface_BINARY_DIR=${FortranCInterface_BINARY_DIR}"
|
|
+ "-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}"
|
|
${_FortranCInterface_OSX_ARCH}
|
|
${_FortranCInterface_EXE_LINKER_FLAGS}
|
|
OUTPUT_VARIABLE _output)
|
|
--
|
|
2.41.0
|
|
|