summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-16 15:38:32 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-04-16 15:38:40 (GMT)
commit16f213efa3786ecf8ebe15355f17890b54e56ac5 (patch)
tree09e0e27ba68a133aded53577da27e31e16644feb /Modules
parent06fbbfb17d40d2634cdbae77e987a5c457792ba5 (diff)
parentcc0d2004b208d893c20f243ed83391e344589226 (diff)
downloadCMake-16f213efa3786ecf8ebe15355f17890b54e56ac5.zip
CMake-16f213efa3786ecf8ebe15355f17890b54e56ac5.tar.gz
CMake-16f213efa3786ecf8ebe15355f17890b54e56ac5.tar.bz2
Merge topic 'fujitsu-fixup'
cc0d2004b2 Fujitsu: Fix C90 standard flags ec78e86cc8 FujitsuClang: Use GNU-like command-line Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5997
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake2
-rw-r--r--Modules/Compiler/Fujitsu-C.cmake6
2 files changed, 5 insertions, 3 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index d7b7f26..519fe6b 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -223,6 +223,8 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
else()
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "GNU")
endif()
+ elseif("x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xFujitsuClang")
+ set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "GNU")
else()
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "")
endif()
diff --git a/Modules/Compiler/Fujitsu-C.cmake b/Modules/Compiler/Fujitsu-C.cmake
index 0e0f1dc..dd31e43 100644
--- a/Modules/Compiler/Fujitsu-C.cmake
+++ b/Modules/Compiler/Fujitsu-C.cmake
@@ -4,9 +4,9 @@ include(Compiler/Fujitsu)
__compiler_fujitsu(C)
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 4)
- set(CMAKE_C89_STANDARD_COMPILE_OPTION -std=c89)
- set(CMAKE_C89_EXTENSION_COMPILE_OPTION -std=gnu89)
- set(CMAKE_C89_STANDARD__HAS_FULL_SUPPORT ON)
+ set(CMAKE_C90_STANDARD_COMPILE_OPTION -std=c89)
+ set(CMAKE_C90_EXTENSION_COMPILE_OPTION -std=gnu89)
+ set(CMAKE_C90_STANDARD__HAS_FULL_SUPPORT ON)
set(CMAKE_C99_STANDARD_COMPILE_OPTION -std=c99)
set(CMAKE_C99_EXTENSION_COMPILE_OPTION -std=gnu99)