summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-11-03 17:24:30 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-11-03 17:24:30 (GMT)
commit247f1149e1035f6a9cd95620016364015c34807b (patch)
tree2fa552d77cba2a1ff620adee9d6369ae9e79c031 /Modules/FindHDF5.cmake
parentf56963cf054832995488287af7b8c4abd6c8e4dd (diff)
downloadCMake-247f1149e1035f6a9cd95620016364015c34807b.zip
CMake-247f1149e1035f6a9cd95620016364015c34807b.tar.gz
CMake-247f1149e1035f6a9cd95620016364015c34807b.tar.bz2
FindHDF5: clear language-specific libraries list before discovery
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index ce08728..bda392d 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -588,6 +588,9 @@ if(NOT HDF5_FOUND)
set(HDF5_COMPILER_NO_INTERROGATE TRUE)
# Only search for languages we've enabled
foreach(_lang IN LISTS HDF5_LANGUAGE_BINDINGS)
+ set(HDF5_${_lang}_LIBRARIES)
+ set(HDF5_${_lang}_HL_LIBRARIES)
+
# First check to see if our regular compiler is one of wrappers
if(_lang STREQUAL "C")
_HDF5_test_regular_compiler_C(
@@ -813,6 +816,9 @@ if( NOT HDF5_FOUND )
endif()
foreach(_lang IN LISTS HDF5_LANGUAGE_BINDINGS)
+ set(HDF5_${_lang}_LIBRARIES)
+ set(HDF5_${_lang}_HL_LIBRARIES)
+
# The "main" library.
set(_hdf5_main_library "")