summaryrefslogtreecommitdiff
path: root/Modules/Platform/Darwin-NAG-Fortran.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Darwin-NAG-Fortran.cmake')
-rw-r--r--Modules/Platform/Darwin-NAG-Fortran.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin-NAG-Fortran.cmake b/Modules/Platform/Darwin-NAG-Fortran.cmake
new file mode 100644
index 000000000..933f9e1a2
--- /dev/null
+++ b/Modules/Platform/Darwin-NAG-Fortran.cmake
@@ -0,0 +1,5 @@
+set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood.
+
+# Need -fpp explicitly on case-insensitive filesystem.
+set(CMAKE_Fortran_COMPILE_OBJECT
+ "<CMAKE_Fortran_COMPILER> -fpp -o <OBJECT> <DEFINES> <FLAGS> -c <SOURCE>")