From 49efd1933a4199893ccf59f46b4401d7badef1ea Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Mon, 11 Aug 2014 21:30:21 +0200 Subject: [PATCH] Cmake build: Move use of QT5 libraries to the end of linker command line. To prevent the linker error if they were before some object file referencing some symbol there. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 44805ed355..31b5bfd32f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -119,8 +119,6 @@ add_dependencies(${_lyx} lyx_version) set_target_properties(${_lyx} PROPERTIES FOLDER "applications/LyX") -qt_use_modules(${_lyx} Core Gui) - lyx_add_gcc_pch(${_lyx}) target_link_libraries(${_lyx} @@ -134,6 +132,8 @@ target_link_libraries(${_lyx} ${QT_QTMAIN_LIBRARY} ${vld_dll}) +qt_use_modules(${_lyx} Core Gui) + lyx_target_link_libraries(${_lyx} HUNSPELL ASPELL ENCHANT Magic) if(APPLE) -- 2.39.2