diff options
author | Kris Thielemans <k.thielemans@ucl.ac.uk> | 2021-01-10 11:29:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-11 17:00:38 (GMT) |
commit | eec3b775a7db2955ed8c2e6e8f21eb900c5e1c79 (patch) | |
tree | 5b9067117fbe99df5ca129527bae68294b45a44a /Modules/FindHDF5.cmake | |
parent | 186b0f813132d79b0cb5412e902478aa5f5795ea (diff) | |
download | CMake-eec3b775a7db2955ed8c2e6e8f21eb900c5e1c79.zip CMake-eec3b775a7db2955ed8c2e6e8f21eb900c5e1c79.tar.gz CMake-eec3b775a7db2955ed8c2e6e8f21eb900c5e1c79.tar.bz2 |
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).
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r-- | Modules/FindHDF5.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index 9bb4166..f64f72f 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -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) |