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().
This commit is contained in:
Kornel Benko 2016-09-11 15:34:58 +02:00
parent 754cb3d18a
commit 050d817605

View File

@ -132,6 +132,9 @@ target_link_libraries(${_lyx}
${LYX_QTMAIN_LIBRARY} ${LYX_QTMAIN_LIBRARY}
${vld_dll}) ${vld_dll})
if(LYX_USE_QT MATCHES "QT4")
target_link_libraries(${_lyx} ${QT_QTSVG_LIBRARY})
endif()
qt_use_modules(${_lyx} Core Gui) qt_use_modules(${_lyx} Core Gui)
if(QT_USES_X11) if(QT_USES_X11)