diff options
author | FARBOS Arnaud <farbos.arnaud@gmail.com> | 2016-05-02 14:19:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-02 15:31:35 (GMT) |
commit | 313676c9f0e5be339bff2064cb649b075c6b8e12 (patch) | |
tree | 38ae60a480486bf736513c1b8e2e59815cc9b3a8 /Modules/FindHDF5.cmake | |
parent | 24b2a36778fd65f7066a964cf9f5d249f8e0f101 (diff) | |
download | CMake-313676c9f0e5be339bff2064cb649b075c6b8e12.zip CMake-313676c9f0e5be339bff2064cb649b075c6b8e12.tar.gz CMake-313676c9f0e5be339bff2064cb649b075c6b8e12.tar.bz2 |
FindHDF5: Add another debug suffix
HDF5 1.8.16 (and likely others) names its debug libraries with a
`_debug` suffix intsead of `d`.
Diffstat (limited to 'Modules/FindHDF5.cmake')
-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 9f6e666..38a728e 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -310,10 +310,10 @@ if( NOT HDF5_FOUND ) # See https://cmake.org/Bug/view.php?id=1643. We search # first for the full static library name, but fall back to a # generic search on the name if the static search fails. - set( THIS_LIBRARY_SEARCH_DEBUG lib${LIB}d.a ${LIB}d ) + set( THIS_LIBRARY_SEARCH_DEBUG lib${LIB}d.a lib${LIB}_debug.a ${LIB}d ${LIB}_debug ) set( THIS_LIBRARY_SEARCH_RELEASE lib${LIB}.a ${LIB} ) else() - set( THIS_LIBRARY_SEARCH_DEBUG ${LIB}d ) + set( THIS_LIBRARY_SEARCH_DEBUG ${LIB}d ${LIB}_debug ) set( THIS_LIBRARY_SEARCH_RELEASE ${LIB} ) endif() find_library( HDF5_${LIB}_LIBRARY_DEBUG |