Skip to content
Snippets Groups Projects
Commit 85bcbd04 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

[bugfix] HDF5_INCLUDE_DIR has been deprecated in CMake 2.8.1

The new variable is called HDF5_INCLUDE_DIRS
parent e4662896
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ function(add_dune_hdf5_flags _targets) ...@@ -12,7 +12,7 @@ function(add_dune_hdf5_flags _targets)
if(HDF5_FOUND) if(HDF5_FOUND)
foreach(_target ${_targets}) foreach(_target ${_targets})
target_link_libraries(${_target} ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES}) target_link_libraries(${_target} ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES})
set_property(TARGET ${_target} APPEND PROPERTY INCLUDE_DIRECTORIES ${HDF5_INCLUDE_DIR}) set_property(TARGET ${_target} APPEND PROPERTY INCLUDE_DIRECTORIES ${HDF5_INCLUDE_DIRS})
endforeach(_target ${_targets}) endforeach(_target ${_targets})
endif(HDF5_FOUND) endif(HDF5_FOUND)
endfunction(add_dune_hdf5_flags) endfunction(add_dune_hdf5_flags)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment