1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 22:37:30 +08:00

NVHPC: Support explicit language flags

This commit is contained in:
Robert Maynard
2021-05-18 11:30:01 -04:00
parent 1ad4501ae9
commit 521cfc38a3
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
include(Compiler/PGI-C)
include(Compiler/NVHPC)
# Needed so that we support `LANGUAGE` property correctly
set(CMAKE_C_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -x c)
__compiler_nvhpc(C)

View File

@@ -1,3 +1,7 @@
include(Compiler/PGI-CXX)
include(Compiler/NVHPC)
# Needed so that we support `LANGUAGE` property correctly
set(CMAKE_CXX_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -x c++)
__compiler_nvhpc(CXX)