diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-09-11 01:10:27 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-09-11 01:11:34 (GMT) |
commit | 84a097f0388f8fbf86aeada640f56132e3776335 (patch) | |
tree | cb46ba9ba51d78d546183a4ea3a62400b62a6e7f /Modules/FortranCInterface.cmake | |
parent | 9aa25ed8048226d82f7ceea8d99841a2fea9ffe3 (diff) | |
download | CMake-84a097f0388f8fbf86aeada640f56132e3776335.zip CMake-84a097f0388f8fbf86aeada640f56132e3776335.tar.gz CMake-84a097f0388f8fbf86aeada640f56132e3776335.tar.bz2 |
FortranCInterface: forward `CMAKE_OSX_DEPLOYMENT_TARGET`
GCC needs to be taught about every macOS release it seems, so older
builds may not support usage on newer releases by default.
Diffstat (limited to 'Modules/FortranCInterface.cmake')
-rw-r--r-- | Modules/FortranCInterface.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake index 2c85029..81481a7 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) |