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:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user