mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 21:41:03 +00:00
Merge topic 'findhdf5-libraries-targets'
5201a306
FindHDF5: use the target rather than the path
This commit is contained in:
commit
f63096a68c
@ -439,8 +439,8 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
|
||||
set(HDF5_${_lang}_LIBRARY ${_lang_location} CACHE PATH
|
||||
"HDF5 ${_lang} library" )
|
||||
mark_as_advanced(HDF5_${_lang}_LIBRARY)
|
||||
list(APPEND HDF5_LIBRARIES ${HDF5_${_lang}_LIBRARY})
|
||||
set(HDF5_${_lang}_LIBRARIES ${HDF5_${_lang}_LIBRARY})
|
||||
list(APPEND HDF5_LIBRARIES ${HDF5_${_lang}_TARGET}${_suffix})
|
||||
set(HDF5_${_lang}_LIBRARIES ${HDF5_${_lang}_TARGET}${_suffix})
|
||||
set(HDF5_${_lang}_FOUND True)
|
||||
endif()
|
||||
if(FIND_HL)
|
||||
@ -449,8 +449,8 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
|
||||
set(HDF5_${_lang}_HL_LIBRARY ${_lang_hl_location} CACHE PATH
|
||||
"HDF5 ${_lang} HL library" )
|
||||
mark_as_advanced(HDF5_${_lang}_HL_LIBRARY)
|
||||
list(APPEND HDF5_HL_LIBRARIES ${HDF5_${_lang}_HL_LIBRARY})
|
||||
set(HDF5_${_lang}_HL_LIBRARIES ${HDF5_${_lang}_HL_LIBRARY})
|
||||
list(APPEND HDF5_HL_LIBRARIES ${HDF5_${_lang}_TARGET}${_suffix})
|
||||
set(HDF5_${_lang}_HL_LIBRARIES ${HDF5_${_lang}_TARGET}${_suffix})
|
||||
set(HDF5_HL_FOUND True)
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user