Skip to content

Commit

Permalink
Fixes finding HDF5 header
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius-Plehn committed Feb 22, 2024
1 parent 3433670 commit 6cc5c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/check_hdf5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ function(check_hdf5_feature_header)

message(STATUS "Checking for HDF5 config header")
foreach(_h5_header "H5public.h" "H5pubconf.h" "H5pubconf-64.h" "H5pubconf-32.h")
check_include_file(${_h5_header} _can_include_h5_header)
check_include_file(${_h5_header} _can_include_h5_header${_h5_header})

if (_can_include_h5_header)
if (_can_include_h5_header${_h5_header})
message(STATUS "Using ${_h5_header} to check for feature macros")
set(_H5_FEATURE_HEADER ${_h5_header} CACHE INTERNAL "")
return()
Expand Down

0 comments on commit 6cc5c17

Please sign in to comment.