cmake/Modules/Compiler/NVHPC.cmake

18 lines
501 B
CMake
Raw Normal View History

2021-09-14 00:13:48 +02:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
# This module is shared by multiple languages; use include blocker.
if(__COMPILER_NVHPC)
return()
endif()
set(__COMPILER_NVHPC 1)
include(Compiler/PGI)
macro(__compiler_nvhpc lang)
# Logic specific to NVHPC.
2021-11-20 13:41:27 +01:00
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
2022-11-03 08:47:52 +01:00
set(CMAKE_${lang}_COMPILE_OPTIONS_WARNING_AS_ERROR "-Werror" "all-warnings")
2021-09-14 00:13:48 +02:00
endmacro()