From 050d817605f5033d3937c0f3734cd210a4bb1b64 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 11 Sep 2016 15:34:58 +0200 Subject: [PATCH] Cmake build: Add qt-svg-lib to be linked with lyx if used QT4. Probably due to commit 82808fe, there were undefined references such as e.g. QSvgRenderer::~QSvgRenderer(). --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0c56ce62e4..b7d1b06791 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -132,6 +132,9 @@ target_link_libraries(${_lyx} ${LYX_QTMAIN_LIBRARY} ${vld_dll}) +if(LYX_USE_QT MATCHES "QT4") + target_link_libraries(${_lyx} ${QT_QTSVG_LIBRARY}) +endif() qt_use_modules(${_lyx} Core Gui) if(QT_USES_X11)