From 0578c283e88c40957c7f43c653dd8c75d8c7782e Mon Sep 17 00:00:00 2001 From: Erik Lindahl 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. Detect both native and cross compilers by looking for the __FUJITSU preprocessor definition. --- Modules/CMakeCompilerIdDetection.cmake | 1 + Modules/Compiler/Fujitsu-DetermineCompiler.cmake | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 Modules/Compiler/Fujitsu-DetermineCompiler.cmake diff --git a/Modules/CMakeCompilerIdDetection.cmake b/Modules/CMakeCompilerIdDetection.cmake index e247885d0..19bcbcc28 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 000000000..73ee38c87 --- /dev/null +++ b/Modules/Compiler/Fujitsu-DetermineCompiler.cmake @@ -0,0 +1,2 @@ + +set(_compiler_id_pp_test "defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)")