making netcdf link publicly to hdf5 includd directoriess

This commit is contained in:
Kyle Shores 2024-02-14 10:40:53 -06:00
parent 0a01ea62dd
commit 12120235b2
2 changed files with 1 additions and 2 deletions

View File

@ -26,6 +26,7 @@ if(USE_HDF5)
PRIVATE
$<TARGET_OBJECTS:netcdfhdf5>
)
target_include_directories(netcdf PUBLIC ${HDF5_INCLUDE_DIR})
endif()
if(USE_PNETCDF)

View File

@ -47,7 +47,6 @@ if(USE_HDF5)
add_executable(nc4print nc4print.c nc4printer.c)
add_executable(printfqn ${printfqn_FILES})
add_executable(nchdf5version ${nchdf5version_FILES})
target_include_directories(nchdf5version PRIVATE ${HDF5_INCLUDE_DIR})
endif(USE_HDF5)
if(ENABLE_DAP)
@ -65,7 +64,6 @@ if(USE_HDF5)
target_link_libraries(nc4print netcdf ${ALL_TLL_LIBS})
target_link_libraries(printfqn netcdf ${ALL_TLL_LIBS})
target_link_libraries(nchdf5version netcdf ${ALL_TLL_LIBS})
target_include_directories(ncdump PRIVATE ${HDF5_INCLUDE_DIR})
endif(USE_HDF5)
if(ENABLE_DAP)