diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2021-05-18 15:30:01 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2021-05-18 15:30:01 (GMT) |
commit | 521cfc38a3faa9239015ceb8281800aa14a215cb (patch) | |
tree | 923a872363858269a78367f5263b2612d2652a86 /Modules/Compiler/NVHPC-C.cmake | |
parent | 1ad4501ae97fb6c6deab096ff0ac7e03d554e26d (diff) | |
download | CMake-521cfc38a3faa9239015ceb8281800aa14a215cb.zip CMake-521cfc38a3faa9239015ceb8281800aa14a215cb.tar.gz CMake-521cfc38a3faa9239015ceb8281800aa14a215cb.tar.bz2 |
NVHPC: Support explicit language flags
Diffstat (limited to 'Modules/Compiler/NVHPC-C.cmake')
-rw-r--r-- | Modules/Compiler/NVHPC-C.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/NVHPC-C.cmake b/Modules/Compiler/NVHPC-C.cmake index d16c72b..72c2656 100644 --- a/Modules/Compiler/NVHPC-C.cmake +++ b/Modules/Compiler/NVHPC-C.cmake @@ -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) |