diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-11-03 17:24:30 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-11-03 17:24:30 (GMT) |
commit | 247f1149e1035f6a9cd95620016364015c34807b (patch) | |
tree | 2fa552d77cba2a1ff620adee9d6369ae9e79c031 /Modules/FindHDF5.cmake | |
parent | f56963cf054832995488287af7b8c4abd6c8e4dd (diff) | |
download | CMake-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.cmake | 6 |
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 "") |