Skip to content

Commit

Permalink
BUG: Do not let HDF5 set the CMAKE_INSTALL_PREFIX
Browse files Browse the repository at this point in the history
Submitted upstream: HDFGroup/hdf5#1380
  • Loading branch information
thewtex committed Jan 18, 2022
1 parent b50207f commit 04455fd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ macro (HDF_DIR_PATHS package_prefix)
endif ()
endif ()

if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# ITK --start. Do not let HDF5 set the CMAKE_INSTALL_PREFIX for externally configured projects. Submitted upstream: https://github.com/HDFGroup/hdf5/pull/1380
if (NOT ${package_prefix}_EXTERNALLY_CONFIGURED AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# ITK -- stop
if (CMAKE_HOST_UNIX)
set (CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/HDF_Group/${HDF5_PACKAGE_NAME}/${HDF5_PACKAGE_VERSION}"
CACHE PATH "Install path prefix, prepended onto install directories." FORCE)
Expand Down

0 comments on commit 04455fd

Please sign in to comment.