Skip to content

Commit

Permalink
Added T8CODE_ENABLE_MPI requirement for netcdf_par
Browse files Browse the repository at this point in the history
  • Loading branch information
maelk3 committed Aug 7, 2024
1 parent f387d1d commit 357300b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ endif()

if( T8CODE_ENABLE_NETCDF )
target_link_libraries( T8 PUBLIC netCDF::netcdf )

target_compile_definitions(T8 PUBLIC
T8_WITH_NETCDF
$<$<BOOL:${NETCDF_HAVE_NETCDF_PAR}>:T8_WITH_NETCDF_PAR> )
$<$<AND:$<BOOL:${NETCDF_HAVE_NETCDF_PAR}>,$<BOOL:${T8CODE_ENABLE_MPI}>>:T8_WITH_NETCDF_PAR> )
endif()

set_target_properties( T8 PROPERTIES OUTPUT_NAME t8 )
Expand Down

0 comments on commit 357300b

Please sign in to comment.