mirror of
https://github.com/reactos/CMake.git
synced 2025-01-23 12:15:20 +00:00
FindHDF5: Use keywords in find_library calls
Clarify the purpose of each argument.
This commit is contained in:
parent
3d5ad7236c
commit
77f6d22ad1
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user