diff options
author | Brad King <brad.king@kitware.com> | 2024-02-02 15:24:05 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-02-02 15:24:23 (GMT) |
commit | 8d01a388f1a17da3104e4cfc79950fa3d3fd03e3 (patch) | |
tree | 5b57a3ae466a071217fcbe0fc446518b6700efcf | |
parent | 2c3509136f5efefcd72b13fbfcc065c5b23914ad (diff) | |
parent | 30962830dc885a988a3b6f35a630ed960f3e72c8 (diff) | |
download | CMake-8d01a388f1a17da3104e4cfc79950fa3d3fd03e3.zip CMake-8d01a388f1a17da3104e4cfc79950fa3d3fd03e3.tar.gz CMake-8d01a388f1a17da3104e4cfc79950fa3d3fd03e3.tar.bz2 |
Merge topic 'FindOpenACC'
30962830dc FindOpenACC: Add support for the Clang Compiler
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9212
-rw-r--r-- | Modules/FindOpenACC.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindOpenACC.cmake b/Modules/FindOpenACC.cmake index 436f5ea..e9ca683 100644 --- a/Modules/FindOpenACC.cmake +++ b/Modules/FindOpenACC.cmake @@ -147,6 +147,7 @@ function(_OPENACC_GET_FLAGS_CANDIDATE LANG FLAG_VAR) set(ACC_FLAG_PGI "-acc") set(ACC_FLAG_GNU "-fopenacc") set(ACC_FLAG_Cray "-h acc") + set(ACC_FLAG_Clang "-fopenacc") if(DEFINED ACC_FLAG_${CMAKE_${LANG}_COMPILER_ID}) set("${FLAG_VAR}" "${ACC_FLAG_${CMAKE_${LANG}_COMPILER_ID}}" PARENT_SCOPE) |