diff options
author | Brad King <brad.king@kitware.com> | 2021-01-27 14:32:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-27 14:53:02 (GMT) |
commit | ff7bab83c20900fd631cd0692120e3d7788182b1 (patch) | |
tree | 1b39322c252b786981e8e722028b0ae56663c548 | |
parent | 83ea49818f4d7a031d972e26e0cb1d561ed20d76 (diff) | |
download | CMake-ff7bab83c20900fd631cd0692120e3d7788182b1.zip CMake-ff7bab83c20900fd631cd0692120e3d7788182b1.tar.gz CMake-ff7bab83c20900fd631cd0692120e3d7788182b1.tar.bz2 |
GenerateExportHeader: Add support for NVHPC compiler
Treat it just like PGI.
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index bc1eb17..2c4572f 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -232,7 +232,7 @@ macro(_test_compiler_hidden_visibility) AND NOT WIN32 AND NOT CYGWIN AND NOT CMAKE_CXX_COMPILER_ID MATCHES XL - AND NOT CMAKE_CXX_COMPILER_ID MATCHES PGI + AND NOT CMAKE_CXX_COMPILER_ID MATCHES "^(PGI|NVHPC)$" AND NOT CMAKE_CXX_COMPILER_ID MATCHES Watcom) if (CMAKE_CXX_COMPILER_LOADED) check_cxx_compiler_flag(-fvisibility=hidden COMPILER_HAS_HIDDEN_VISIBILITY) @@ -254,7 +254,7 @@ macro(_test_compiler_has_deprecated) OR CMAKE_CXX_COMPILER_ID MATCHES Embarcadero OR CMAKE_CXX_COMPILER_ID MATCHES HP OR GCC_TOO_OLD - OR CMAKE_CXX_COMPILER_ID MATCHES PGI + OR CMAKE_CXX_COMPILER_ID MATCHES "^(PGI|NVHPC)$" OR CMAKE_CXX_COMPILER_ID MATCHES Watcom) set(COMPILER_HAS_DEPRECATED "" CACHE INTERNAL "Compiler support for a deprecated attribute") |