summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-17 14:28:48 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-17 14:28:48 (GMT)
commit2cffea3c72a18a19c4eb4950699c478af16fc5a7 (patch)
tree4bd1d2069d79743d1e31a266ec9a129fcacf7565 /Modules
parent2c354f4ee44e9690ca6ed6c7266283bda1070ca4 (diff)
parent96d6139386e22f672f14071eae3911fd7200f079 (diff)
downloadCMake-2cffea3c72a18a19c4eb4950699c478af16fc5a7.zip
CMake-2cffea3c72a18a19c4eb4950699c478af16fc5a7.tar.gz
CMake-2cffea3c72a18a19c4eb4950699c478af16fc5a7.tar.bz2
Merge branch 'FindHDF5-fix-header-langs' into release
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindHDF5.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index e1199a7..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)
@@ -680,7 +680,7 @@ if( NOT HDF5_FOUND )
PATH_SUFFIXES include Include
${_HDF5_SEARCH_OPTS}
)
- mark_as_advanced(HDF5_${LANGUAGE}_INCLUDE_DIR)
+ mark_as_advanced(HDF5_${__lang}_INCLUDE_DIR)
list(APPEND HDF5_INCLUDE_DIRS ${HDF5_${__lang}_INCLUDE_DIR})
# find the HDF5 libraries