diff options
author | Aaron Liu <hualilia@ca.ibm.com> | 2021-12-02 15:34:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-27 14:38:01 (GMT) |
commit | 6da99e671c59a5b5b4731020cc286bb873a8134e (patch) | |
tree | 72cf89744dd3bfcb047fc50c6de41533c59833f6 /Tests/CompileFeatures/CMakeLists.txt | |
parent | 28e90f9576fa5784408c03cf20bf172b20e418f0 (diff) | |
download | CMake-6da99e671c59a5b5b4731020cc286bb873a8134e.zip CMake-6da99e671c59a5b5b4731020cc286bb873a8134e.tar.gz CMake-6da99e671c59a5b5b4731020cc286bb873a8134e.tar.bz2 |
IBMClang: Add support for IBM Open XL C/C++
Fixes: #22929
Diffstat (limited to 'Tests/CompileFeatures/CMakeLists.txt')
-rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index 20988ac..c6d1e8a 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -18,7 +18,7 @@ macro(run_test feature lang) endif() endmacro() -if(NOT CMAKE_C_COMPILER_ID MATCHES "^(Cray|PGI|NVHPC|XL|XLClang|IntelLLVM|Fujitsu|FujitsuClang)$") +if(NOT CMAKE_C_COMPILER_ID MATCHES "^(Cray|PGI|NVHPC|XL|XLClang|IBMClang|IntelLLVM|Fujitsu|FujitsuClang)$") get_property(c_features GLOBAL PROPERTY CMAKE_C_KNOWN_FEATURES) list(FILTER c_features EXCLUDE REGEX "^c_std_[0-9][0-9]") foreach(feature ${c_features}) @@ -26,7 +26,7 @@ if(NOT CMAKE_C_COMPILER_ID MATCHES "^(Cray|PGI|NVHPC|XL|XLClang|IntelLLVM|Fujits endforeach() endif() -if(NOT CMAKE_CXX_COMPILER_ID MATCHES "^(Cray|PGI|NVHPC|XL|XLClang|IntelLLVM|Fujitsu|FujitsuClang)$") +if(NOT CMAKE_CXX_COMPILER_ID MATCHES "^(Cray|PGI|NVHPC|XL|XLClang|IBMClang|IntelLLVM|Fujitsu|FujitsuClang)$") get_property(cxx_features GLOBAL PROPERTY CMAKE_CXX_KNOWN_FEATURES) list(FILTER cxx_features EXCLUDE REGEX "^cxx_std_[0-9][0-9]") foreach(feature ${cxx_features}) |