Commit ff7bab83 authored by Brad King's avatar Brad King
Browse files

GenerateExportHeader: Add support for NVHPC compiler

Treat it just like PGI.
parent 83ea4981
...@@ -232,7 +232,7 @@ macro(_test_compiler_hidden_visibility) ...@@ -232,7 +232,7 @@ macro(_test_compiler_hidden_visibility)
AND NOT WIN32 AND NOT WIN32
AND NOT CYGWIN AND NOT CYGWIN
AND NOT CMAKE_CXX_COMPILER_ID MATCHES XL 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) AND NOT CMAKE_CXX_COMPILER_ID MATCHES Watcom)
if (CMAKE_CXX_COMPILER_LOADED) if (CMAKE_CXX_COMPILER_LOADED)
check_cxx_compiler_flag(-fvisibility=hidden COMPILER_HAS_HIDDEN_VISIBILITY) check_cxx_compiler_flag(-fvisibility=hidden COMPILER_HAS_HIDDEN_VISIBILITY)
...@@ -254,7 +254,7 @@ macro(_test_compiler_has_deprecated) ...@@ -254,7 +254,7 @@ macro(_test_compiler_has_deprecated)
OR CMAKE_CXX_COMPILER_ID MATCHES Embarcadero OR CMAKE_CXX_COMPILER_ID MATCHES Embarcadero
OR CMAKE_CXX_COMPILER_ID MATCHES HP OR CMAKE_CXX_COMPILER_ID MATCHES HP
OR GCC_TOO_OLD 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) OR CMAKE_CXX_COMPILER_ID MATCHES Watcom)
set(COMPILER_HAS_DEPRECATED "" CACHE INTERNAL set(COMPILER_HAS_DEPRECATED "" CACHE INTERNAL
"Compiler support for a deprecated attribute") "Compiler support for a deprecated attribute")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment