summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-17 14:32:57 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-02-17 14:32:57 (GMT)
commitdbdd25bc95af100633008a31f1bbdf7146e211f7 (patch)
treebf0e2160a47bed2c3b297eb03fa157b1c8ad6cb9
parentc58b0926a7941096e77a7d75760f68523cb01107 (diff)
parent96d6139386e22f672f14071eae3911fd7200f079 (diff)
downloadCMake-dbdd25bc95af100633008a31f1bbdf7146e211f7.zip
CMake-dbdd25bc95af100633008a31f1bbdf7146e211f7.tar.gz
CMake-dbdd25bc95af100633008a31f1bbdf7146e211f7.tar.bz2
Merge topic 'FindHDF5-fix-header-langs'
96d61393 FindHDF5: Fix search for language-specific header file
-rw-r--r--Modules/FindHDF5.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index fb97d68..65a825d 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -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)