NVHPC.cmake 600 B

1234567891011121314151617181920
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__COMPILER_NVHPC)
  5. return()
  6. endif()
  7. set(__COMPILER_NVHPC 1)
  8. include(Compiler/PGI)
  9. macro(__compiler_nvhpc lang)
  10. # Logic specific to NVHPC.
  11. set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
  12. set(CMAKE_${lang}_COMPILE_OPTIONS_EXTERNAL_TOOLCHAIN "--gcc-toolchain=")
  13. set(CMAKE_${lang}_COMPILE_OPTIONS_WARNING_AS_ERROR "-Werror")
  14. set(CMAKE_${lang}_LINK_MODE DRIVER)
  15. endmacro()