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.
This commit is contained in:
Kornel Benko 2014-08-11 21:30:21 +02:00
parent 048571a2bf
commit 49efd1933a

View File

@ -119,8 +119,6 @@ add_dependencies(${_lyx} lyx_version)
set_target_properties(${_lyx} PROPERTIES FOLDER "applications/LyX") set_target_properties(${_lyx} PROPERTIES FOLDER "applications/LyX")
qt_use_modules(${_lyx} Core Gui)
lyx_add_gcc_pch(${_lyx}) lyx_add_gcc_pch(${_lyx})
target_link_libraries(${_lyx} target_link_libraries(${_lyx}
@ -134,6 +132,8 @@ target_link_libraries(${_lyx}
${QT_QTMAIN_LIBRARY} ${QT_QTMAIN_LIBRARY}
${vld_dll}) ${vld_dll})
qt_use_modules(${_lyx} Core Gui)
lyx_target_link_libraries(${_lyx} HUNSPELL ASPELL ENCHANT Magic) lyx_target_link_libraries(${_lyx} HUNSPELL ASPELL ENCHANT Magic)
if(APPLE) if(APPLE)