Skip to content

Commit 311504b

Browse files
committed
OpenACC + Cray compilers
1 parent 91670c9 commit 311504b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,13 @@ if (MFC_BUILD_SIMULATION)
216216

217217

218218
if (MFC_WITH_OPEN_ACC)
219-
find_package(OpenACC REQUIRED)
219+
find_package(OpenACC)
220+
221+
# This should be equivalent to if (NOT OpenACC_FC_FOUND)
222+
if (NOT TARGET OpenACC::OpenACC_Fortran)
223+
message(FATAL_ERROR "OpenACC + Fortran is unsupported.")
224+
endif()
225+
220226
target_link_libraries(simulation PRIVATE OpenACC::OpenACC_Fortran)
221227

222228

0 commit comments

Comments
 (0)