From 12c7077f3178af09cb4420ad5da5ae6df06adadc Mon Sep 17 00:00:00 2001
From: Erik Lindahl <erik@kth.se>
Date: Sun, 10 Aug 2014 22:55:44 +0200
Subject: [PATCH] Add Fujitsu compiler detection

The Fujitsu C/C++ compilers are the default
ones for K computer. This patch will detect
both native and cross compilers.
---
 Modules/CMakeCompilerIdDetection.cmake           | 1 +
 Modules/Compiler/Fujitsu-DetermineCompiler.cmake | 3 +++
 2 files changed, 4 insertions(+)
 create mode 100644 Modules/Compiler/Fujitsu-DetermineCompiler.cmake

diff --git a/Modules/CMakeCompilerIdDetection.cmake b/Modules/CMakeCompilerIdDetection.cmake
index e247885..19bcbcc 100644
--- a/Modules/CMakeCompilerIdDetection.cmake
+++ b/Modules/CMakeCompilerIdDetection.cmake
@@ -74,6 +74,7 @@ function(compiler_id_detection outvar lang)
       PGI
       Cray
       TI
+      Fujitsu
     )
     if (lang STREQUAL C)
       list(APPEND ordered_compilers
diff --git a/Modules/Compiler/Fujitsu-DetermineCompiler.cmake b/Modules/Compiler/Fujitsu-DetermineCompiler.cmake
new file mode 100644
index 0000000..1220743
--- /dev/null
+++ b/Modules/Compiler/Fujitsu-DetermineCompiler.cmake
@@ -0,0 +1,3 @@
+
+set(_compiler_id_pp_test "defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)")
+
-- 
1.8.5.2 (Apple Git-48)

