summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAaron Jarmusch <jarmusch@udel.edu>2024-02-01 15:28:00 (GMT)
committerAaron Jarmusch <jarmusch@udel.edu>2024-02-01 15:28:00 (GMT)
commit30962830dc885a988a3b6f35a630ed960f3e72c8 (patch)
treea4c5f18a763b2edace76281ba012367713de65af /Modules
parentad50700038ab936c57ab1043f65b7f888ff62612 (diff)
downloadCMake-30962830dc885a988a3b6f35a630ed960f3e72c8.zip
CMake-30962830dc885a988a3b6f35a630ed960f3e72c8.tar.gz
CMake-30962830dc885a988a3b6f35a630ed960f3e72c8.tar.bz2
FindOpenACC: Add support for the Clang Compiler
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenACC.cmake1
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)