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.
This commit is contained in:
Ben Boeckel
2023-09-10 21:10:27 -04:00
parent 9aa25ed804
commit 84a097f038

View File

@@ -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)