diff options
author | Chuck Atkins <chuck.atkins@kitware.com> | 2020-12-22 20:07:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-30 14:32:53 (GMT) |
commit | 3c867cff4a98bb198211e3d9f8494fbb478a29e4 (patch) | |
tree | e8fb2a3671d292ff21430df67e95000f20a63bce /Modules/CMakeParseImplicitIncludeInfo.cmake | |
parent | d5ab6a53edef5f259f9b9446943dcc5113898b51 (diff) | |
download | CMake-3c867cff4a98bb198211e3d9f8494fbb478a29e4.zip CMake-3c867cff4a98bb198211e3d9f8494fbb478a29e4.tar.gz CMake-3c867cff4a98bb198211e3d9f8494fbb478a29e4.tar.bz2 |
Fujitsu: Add support for the Fujitsu compiler in Trad mode
Co-Author: Yuichiro Utsumi <utsumi.yuichiro@jp.fujitsu.com>
Diffstat (limited to 'Modules/CMakeParseImplicitIncludeInfo.cmake')
-rw-r--r-- | Modules/CMakeParseImplicitIncludeInfo.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/CMakeParseImplicitIncludeInfo.cmake b/Modules/CMakeParseImplicitIncludeInfo.cmake index 7cd7548..a8e6ac0 100644 --- a/Modules/CMakeParseImplicitIncludeInfo.cmake +++ b/Modules/CMakeParseImplicitIncludeInfo.cmake @@ -146,6 +146,21 @@ function(cmake_parse_implicit_include_line line lang id_var log_var state_var) endif() endif() + # Fujitsu compiler + if(CMAKE_${lang}_COMPILER_ID STREQUAL "Fujitsu" AND + line MATCHES "/ccpcom") + string(REGEX MATCHALL " (-I *|--sys_include=|--preinclude +)(\"[^\"]+\"|[^ \"]+)" incs "${line}") + foreach(inc IN LISTS incs) + string(REGEX REPLACE " (-I *|--sys_include=|--preinclude +)(\"[^\"]+\"|[^ \"]+)" "\\2" idir "${inc}") + list(APPEND rv "${idir}") + endforeach() + if(rv) + string(APPEND log " got implicit includes via fujitsu ccpcom parser!\n") + else() + string(APPEND log " warning: fujitsu ccpcom parse failed!\n") + endif() + endif() + if(log) set(${log_var} "${log}" PARENT_SCOPE) else() |