mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
FindOpenACC: Add support for the Clang Compiler
This commit is contained in:
1 parent
ad50700038
commit
30962830dc
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user