Looking for qwt named as qwt6, also in /usr/lib64

Adding /usr/lib64 as a possible search location for libqwt (in Gentoo,
generally 32 bit libraries reside in /usr/lib, and 64 bit, in
/usr/lib64; there might be other distributions that operate the same
way). Also, qwt might be named "libqwt6".
This commit is contained in:
José de Paula R. N. Assis 2023-11-08 15:16:59 -03:00 committed by Nyall Dawson
parent 6265b1976e
commit 62f4fa1cd0

View File

@ -12,12 +12,13 @@
#
set(QWT_LIBRARY_NAMES qwt-${QT_VERSION_BASE_LOWER} qwt qwt6)
set(QWT_LIBRARY_NAMES qwt-${QT_VERSION_BASE_LOWER} qwt qwt6 qwt6-${QT_VERSION_BASE_LOWER})
find_library(QWT_LIBRARY
NAMES ${QWT_LIBRARY_NAMES}
PATHS
/usr/lib
/usr/lib64
/usr/local/lib
/usr/local/lib/${QT_VERSION_BASE_LOWER}
"$ENV{LIB_DIR}/lib"