summaryrefslogtreecommitdiff
path: root/Modules/Platform/Apple-GNU-Fortran.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Apple-GNU-Fortran.cmake')
-rw-r--r--Modules/Platform/Apple-GNU-Fortran.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/Platform/Apple-GNU-Fortran.cmake b/Modules/Platform/Apple-GNU-Fortran.cmake
new file mode 100644
index 000000000..2f53603cb
--- /dev/null
+++ b/Modules/Platform/Apple-GNU-Fortran.cmake
@@ -0,0 +1,10 @@
+# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+include(Platform/Apple-GNU)
+__apple_compiler_gnu(Fortran)
+cmake_gnu_set_sysroot_flag(Fortran)
+cmake_gnu_set_osx_deployment_target_flag(Fortran)
+
+set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
+set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ")