summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-11-21 09:37:46 -0800
committerMartin Braun <martin.braun@ettus.com>2018-11-27 21:07:31 -0800
commitd4225d6add2bda7e865e00aee31a57770336fa4b (patch)
treead6398441c0305d5bab448ec3f81276367f9a35d /cmake
parent348aa81bf851593b2d8573f1c9e1bfadc145bcd2 (diff)
cmake: FindQwt: Allow pkg-config to set the library name
Currently, the library name is hard-coded to qwt-qt5 to force disambiguation from the Qt4 version. However, when pkg-config is invoked, other package names (e.g. qwt) are also permissable, since we trust pkg-config to not point us to a Qt4 version of Qwt.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindQwt.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/FindQwt.cmake b/cmake/Modules/FindQwt.cmake
index bfdded88e1..d0694c942c 100644
--- a/cmake/Modules/FindQwt.cmake
+++ b/cmake/Modules/FindQwt.cmake
@@ -29,7 +29,7 @@ find_path(QWT_INCLUDE_DIRS
)
find_library (QWT_LIBRARIES
- NAMES qwt6-${QWT_QT_VERSION} qwt-${QWT_QT_VERSION}
+ NAMES ${PC_QWT_LIBRARIES} qwt6-${QWT_QT_VERSION} qwt-${QWT_QT_VERSION}
HINTS
${PC_QWT_LIBDIR}
${CMAKE_INSTALL_PREFIX}/lib