mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 07:11:52 +08:00
NVHPC: Support explicit language flags
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
include(Compiler/PGI-C)
|
include(Compiler/PGI-C)
|
||||||
include(Compiler/NVHPC)
|
include(Compiler/NVHPC)
|
||||||
|
|
||||||
|
# Needed so that we support `LANGUAGE` property correctly
|
||||||
|
set(CMAKE_C_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -x c)
|
||||||
|
|
||||||
__compiler_nvhpc(C)
|
__compiler_nvhpc(C)
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
include(Compiler/PGI-CXX)
|
include(Compiler/PGI-CXX)
|
||||||
include(Compiler/NVHPC)
|
include(Compiler/NVHPC)
|
||||||
|
|
||||||
|
# Needed so that we support `LANGUAGE` property correctly
|
||||||
|
set(CMAKE_CXX_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -x c++)
|
||||||
|
|
||||||
__compiler_nvhpc(CXX)
|
__compiler_nvhpc(CXX)
|
||||||
|
Reference in New Issue
Block a user