summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-12-04 13:51:46 (GMT)
committerBrad King <brad.king@kitware.com>2009-12-04 13:51:46 (GMT)
commit77ded39645ac09a190fe058bf796978bfe2327ba (patch)
tree155b3cdc7e330b5c2cc057508d21940c7c922335
parentd2f1dac136589a07426b66e8a382b3c3160cf745 (diff)
downloadCMake-77ded39645ac09a190fe058bf796978bfe2327ba.zip
CMake-77ded39645ac09a190fe058bf796978bfe2327ba.tar.gz
CMake-77ded39645ac09a190fe058bf796978bfe2327ba.tar.bz2
Fix GNU C and Fortran flags on SunOS
The commit "Split GNU compiler information files" intended to move GNU flags from the platform-wide Platform/SunOS.cmake module into Platform/SunOS-GNU-<lang>.cmake using a helper module Platform/SunOS-GNU.cmake to consolidate flags. However, it accidentally put Fortran flags in the C language module and left out the Fortran module altogether. This fixes those mistakes.
-rw-r--r--Modules/Platform/SunOS-GNU-C.cmake2
-rw-r--r--Modules/Platform/SunOS-GNU-Fortran.cmake2
2 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Platform/SunOS-GNU-C.cmake b/Modules/Platform/SunOS-GNU-C.cmake
index c6b1888..6a96c00 100644
--- a/Modules/Platform/SunOS-GNU-C.cmake
+++ b/Modules/Platform/SunOS-GNU-C.cmake
@@ -1,2 +1,2 @@
include(Platform/SunOS-GNU)
-__sunos_compiler_gnu(Fortran)
+__sunos_compiler_gnu(C)
diff --git a/Modules/Platform/SunOS-GNU-Fortran.cmake b/Modules/Platform/SunOS-GNU-Fortran.cmake
new file mode 100644
index 0000000..c6b1888
--- /dev/null
+++ b/Modules/Platform/SunOS-GNU-Fortran.cmake
@@ -0,0 +1,2 @@
+include(Platform/SunOS-GNU)
+__sunos_compiler_gnu(Fortran)