summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-13 13:59:43 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-13 13:59:43 (GMT)
commit4bd122ad9c82464d8d1271e448e510a5d40f4596 (patch)
treecde892e52f9963aa3c4823616dc28c4346cb9390 /Modules
parent53bb51fc31ddfbc7c62598db1abdef3a1cdd45e7 (diff)
downloadCMake-4bd122ad9c82464d8d1271e448e510a5d40f4596.zip
CMake-4bd122ad9c82464d8d1271e448e510a5d40f4596.tar.gz
CMake-4bd122ad9c82464d8d1271e448e510a5d40f4596.tar.bz2
FindHDF5: Check for a few H5pubconf*.h name variants
Some distros package H5pubconf.h as "H5pubconf-32.h" or "H5pubconf-64.h" depending on the architecture. Look for all of these names.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindHDF5.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 0d58e13..f65e7f9 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -336,14 +336,16 @@ if( NOT HDF5_FOUND )
# HDF5 was compiled with parallel IO support
set( HDF5_IS_PARALLEL FALSE )
foreach( _dir IN LISTS HDF5_INCLUDE_DIRS )
- if( EXISTS "${_dir}/H5pubconf.h" )
- file( STRINGS "${_dir}/H5pubconf.h"
+ foreach(_hdr "${_dir}/H5pubconf.h" "${_dir}/H5pubconf-64.h" "${_dir}/H5pubconf-32.h")
+ if( EXISTS "${_hdr}" )
+ file( STRINGS "${_hdr}"
HDF5_HAVE_PARALLEL_DEFINE
REGEX "HAVE_PARALLEL 1" )
if( HDF5_HAVE_PARALLEL_DEFINE )
set( HDF5_IS_PARALLEL TRUE )
endif()
endif()
+ endforeach()
endforeach()
set( HDF5_IS_PARALLEL ${HDF5_IS_PARALLEL} CACHE BOOL
"HDF5 library compiled with parallel IO support" )