Skip to content

Commit

Permalink
BUG: itkhdf5 installed paths were incorrect with recent hdf5 versions
Browse files Browse the repository at this point in the history
The aliasing for the build tree was incorrectly matched to
install tree file name directory for H5Cpp.h.

\#include "itkhdf5/itk_H5Cpp.h"

Resulted in an error of missing headerfile "itkhdf5/cpp/H5cpp.h"
when building against an installed version of ITK.
  • Loading branch information
hjmjohnson committed Jul 7, 2020
1 parent 3192eb2 commit 9e0d33c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Modules/ThirdParty/HDF5/src/itk_H5Cpp.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifdef ITK_USE_SYSTEM_HDF5
# include <H5Cpp.h>
#else
# include "itkhdf5/cpp/H5Cpp.h"
# include "itkhdf5/H5Cpp.h"
#endif

#endif
6 changes: 6 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/H5Cpp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* This allows itk_H5Cpp.h to include itkhdf5/H5Cpp.h in the ITK build tree.
Do NOT install this header. */
#include "../c++/src/H5Cpp.h"
/* NOTE: The file 'c++/src/H5Cpp.h' is installed as '{INSTALL_PREFIX}/itkhdf5/H5Cpp.h'
* so that this local alias is not needed in the install tree. */

3 changes: 0 additions & 3 deletions Modules/ThirdParty/HDF5/src/itkhdf5/cpp/H5Cpp.h

This file was deleted.

0 comments on commit 9e0d33c

Please sign in to comment.