Skip to content

Commit

Permalink
cmake - when building libnczarr, include zip.h if NETCDF_ENABLE_NCZAR…
Browse files Browse the repository at this point in the history
…R_ZIP=ON
  • Loading branch information
mannreis committed Oct 10, 2024
1 parent 95a6361 commit 1327ab6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libnczarr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ if (USE_HDF5)
target_link_libraries(nczarr PRIVATE HDF5::HDF5)
endif(USE_HDF5)

if(NETCDF_ENABLE_NCZARR_ZIP)
target_include_directories(nczarr PRIVATE ${Zip_INCLUDE_DIRS})
endif(NETCDF_ENABLE_NCZARR_ZIP)

if(STATUS_PARALLEL)
target_link_libraries(nczarr PUBLIC MPI::MPI_C)
endif(STATUS_PARALLEL)
Expand Down

0 comments on commit 1327ab6

Please sign in to comment.