diff options
author | Tin Huynh <ahuynh@nvidia.com> | 2021-01-27 08:00:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-27 14:53:02 (GMT) |
commit | 4de28ba4e6348f99de57bd2961b00dcd4cda213b (patch) | |
tree | d847cafc0c0816e3827fbe73d555316410a48232 /Tests/CompileFeatures | |
parent | 90502d76b7259fb8b417b1a81b504061ce592465 (diff) | |
download | CMake-4de28ba4e6348f99de57bd2961b00dcd4cda213b.zip CMake-4de28ba4e6348f99de57bd2961b00dcd4cda213b.tar.gz CMake-4de28ba4e6348f99de57bd2961b00dcd4cda213b.tar.bz2 |
Tests: Update tests for NVHPC compiler
Treat it just like PGI.
Diffstat (limited to 'Tests/CompileFeatures')
-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 0838532..922e07f 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -15,7 +15,7 @@ macro(run_test feature lang) endif() endmacro() -if(NOT CMAKE_C_COMPILER_ID MATCHES "^(Cray|PGI|XL|XLClang)$") +if(NOT CMAKE_C_COMPILER_ID MATCHES "^(Cray|PGI|NVHPC|XL|XLClang)$") 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}) @@ -23,7 +23,7 @@ if(NOT CMAKE_C_COMPILER_ID MATCHES "^(Cray|PGI|XL|XLClang)$") endforeach() endif() -if(NOT CMAKE_CXX_COMPILER_ID MATCHES "^(Cray|PGI|XL|XLClang)$") +if(NOT CMAKE_CXX_COMPILER_ID MATCHES "^(Cray|PGI|NVHPC|XL|XLClang)$") 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}) |