mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
Merge topic 'FindHDF5-fix-header-langs'
96d61393 FindHDF5: Fix search for language-specific header file
This commit is contained in:
@@ -666,9 +666,9 @@ if( NOT HDF5_FOUND )
|
||||
|
||||
foreach(__lang IN LISTS HDF5_LANGUAGE_BINDINGS)
|
||||
# find the HDF5 include directories
|
||||
if(LANGUAGE STREQUAL "Fortran")
|
||||
if("${__lang}" STREQUAL "Fortran")
|
||||
set(HDF5_INCLUDE_FILENAME hdf5.mod)
|
||||
elseif(LANGUAGE STREQUAL "CXX")
|
||||
elseif("${__lang}" STREQUAL "CXX")
|
||||
set(HDF5_INCLUDE_FILENAME H5Cpp.h)
|
||||
else()
|
||||
set(HDF5_INCLUDE_FILENAME hdf5.h)
|
||||
|
||||
Reference in New Issue
Block a user