mirror of
https://github.com/openharmony/third_party_cmake.git
synced 2026-07-19 12:42:26 -04: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