diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-12-01 20:31:21 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-12-01 20:31:21 (GMT) |
commit | adf108441e04e244af3ca70c6745b536d18fa13e (patch) | |
tree | a76f0b0309b6f8e96c8c7750e42c109c5fca3348 | |
parent | f264f1d783d57c70a0864768b6b1aa44fc94194a (diff) | |
download | CMake-adf108441e04e244af3ca70c6745b536d18fa13e.zip CMake-adf108441e04e244af3ca70c6745b536d18fa13e.tar.gz CMake-adf108441e04e244af3ca70c6745b536d18fa13e.tar.bz2 |
FindHDF5: improve error messages when a location variable isn't known
-rw-r--r-- | Modules/FindHDF5.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index 0a92c71..3c486ce 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -1026,7 +1026,7 @@ if (HDF5_FOUND) # Error if we still don't have the location. message(SEND_ERROR "HDF5 was found, but a different variable was set which contains " - "its location.") + "the location of the `hdf5::${hdf5_target_name}` library.") endif () add_library("hdf5::${hdf5_target_name}" UNKNOWN IMPORTED) string(REPLACE "-D" "" _hdf5_definitions "${HDF5_${hdf5_lang}_DEFINITIONS}") @@ -1085,7 +1085,7 @@ if (HDF5_FOUND) # Error if we still don't have the location. message(SEND_ERROR "HDF5 was found, but a different variable was set which contains " - "its location.") + "the location of the `hdf5::${hdf5_target_name}` library.") endif () add_library("hdf5::${hdf5_target_name}" UNKNOWN IMPORTED) string(REPLACE "-D" "" _hdf5_definitions "${HDF5_${hdf5_lang}_HL_DEFINITIONS}") |