summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-02 14:16:47 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-03 14:12:05 (GMT)
commit77f6d22ad1f1b461297a463eb5f40fbb0d0825aa (patch)
tree7b9fade7d06049d99bf1164b59eb84b7276acd4c /Modules
parent3d5ad7236c8ce444323fb63cd9ff50fb5f757830 (diff)
downloadCMake-77f6d22ad1f1b461297a463eb5f40fbb0d0825aa.zip
CMake-77f6d22ad1f1b461297a463eb5f40fbb0d0825aa.tar.gz
CMake-77f6d22ad1f1b461297a463eb5f40fbb0d0825aa.tar.bz2
FindHDF5: Use keywords in find_library calls
Clarify the purpose of each argument.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindHDF5.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 99b2309..f07d0c7 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -516,7 +516,10 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
endif()
foreach(L IN LISTS HDF5_${__lang}_LIBRARY_NAMES)
- find_library(HDF5_${__lang}_LIBRARY_${L} ${L} ${HDF5_${__lang}_LIBRARY_DIRS})
+ find_library(HDF5_${__lang}_LIBRARY_${L}
+ NAMES ${L}
+ HINTS ${HDF5_${__lang}_LIBRARY_DIRS}
+ )
if(HDF5_${__lang}_LIBRARY_${L})
list(APPEND HDF5_${__lang}_LIBRARIES ${HDF5_${__lang}_LIBRARY_${L}})
else()
@@ -526,7 +529,10 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
if(FIND_HL)
set(HDF5_${__lang}_HL_LIBRARIES)
foreach(L IN LISTS HDF5_${__lang}_HL_LIBRARY_NAMES)
- find_library(HDF5_${__lang}_LIBRARY_${L} ${L} ${HDF5_${__lang}_LIBRARY_DIRS})
+ find_library(HDF5_${__lang}_LIBRARY_${L}
+ NAMES ${L}
+ HINTS ${HDF5_${__lang}_LIBRARY_DIRS}
+ )
if(HDF5_${__lang}_LIBRARY_${L})
list(APPEND HDF5_${__lang}_HL_LIBRARIES ${HDF5_${__lang}_LIBRARY_${L}})
else()