Skip to content

Commit

Permalink
OpenACC now linked publicly to libfield_api
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Sep 11, 2023
1 parent edfe83d commit 452f677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ foreach(prec dp sp)
TARGET ${LIBNAME}_${prec}
SOURCES ${srcs}
DEFINITIONS $<$<NOT:${fiat_FOUND}>:${FIELD_API_DEFINITIONS}>
PUBLIC_LIBS
$<${HAVE_ACC}:OpenACC::OpenACC_Fortran>
PRIVATE_LIBS
$<${fiat_FOUND}:fiat>
$<${fiat_FOUND}:parkind_${prec}>
OpenMP::OpenMP_Fortran
$<${HAVE_ACC}:OpenACC::OpenACC_Fortran>
)
target_include_directories( ${LIBNAME}_${prec} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
set_property(TARGET ${LIBNAME}_${prec} PROPERTY C_STANDARD 99)
Expand Down
2 changes: 0 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ecbuild_add_test(
parkind_dp
fiat
OpenMP::OpenMP_Fortran
$<${HAVE_ACC}:OpenACC::OpenACC_Fortran>
)

## Unit tests
Expand Down Expand Up @@ -53,7 +52,6 @@ foreach(TEST_FILE ${TEST_FILES})
parkind_dp
fiat
OpenMP::OpenMP_Fortran
$<${HAVE_ACC}:OpenACC::OpenACC_Fortran>
)

set_target_properties(${TEST_NAME}.x
Expand Down

0 comments on commit 452f677

Please sign in to comment.