Skip to content

Commit

Permalink
Add HDF5_ROOT environment variable to cmake list (display purpose only).
Browse files Browse the repository at this point in the history
  • Loading branch information
scopplestone committed Jan 10, 2023
1 parent e3b4feb commit 1dad2a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeListsLib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ STRING(TOLOWER ${LIB_TYPE} SEARCH_TYPE)
# a) the version built using configure scripts and b) using CMake
# Support for CMake-built HDF5 is limited to version >1.10.2 which require at CMake >3.10

# Check for env variable HDF5_ROOT as this can cause problems with subsequent building of cmake
SET(HDF5_ROOT "$ENV{HDF5_ROOT}" CACHE STRING "Expose HDF5_ROOT environment variable (cannot be changed here). Use 'export HDF5_ROOT=' to clear the variable." FORCE)

# Use system HDF5
IF(NOT LIBS_BUILD_HDF5)
# Try to find the CMake version
Expand Down

0 comments on commit 1dad2a7

Please sign in to comment.