mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
FindHDF5: List imported targets in debug output
If HDF5_FIND_DEBUG, list all targets that are defined (from either FindHDF5.cmake or the hdf5-config.cmake).
This commit is contained in:
committed by
Brad King
parent
186b0f8131
commit
eec3b775a7
@@ -1154,6 +1154,21 @@ if (HDF5_FIND_DEBUG)
|
||||
message(STATUS "HDF5_${_lang}_HL_LIBRARY: ${HDF5_${_lang}_HL_LIBRARY}")
|
||||
message(STATUS "HDF5_${_lang}_HL_LIBRARIES: ${HDF5_${_lang}_HL_LIBRARIES}")
|
||||
endforeach()
|
||||
message(STATUS "Defined targets (if any):")
|
||||
foreach(_lang IN ITEMS "" "_cpp" "_fortran")
|
||||
foreach(_hl IN ITEMS "" "_hl")
|
||||
foreach(_prefix IN ITEMS "hdf5::" "")
|
||||
foreach(_suffix IN ITEMS "-static" "-shared" "")
|
||||
set (_target ${_prefix}hdf5${_hl}${_lang}${_suffix})
|
||||
if (TARGET ${_target})
|
||||
message(STATUS "... ${_target}")
|
||||
else()
|
||||
#message(STATUS "... ${_target} does not exist")
|
||||
endif()
|
||||
endforeach()
|
||||
endforeach()
|
||||
endforeach()
|
||||
endforeach()
|
||||
endif()
|
||||
unset(_lang)
|
||||
unset(_HDF5_NEED_TO_SEARCH)
|
||||
|
||||
Reference in New Issue
Block a user