]> git.lyx.org Git - features.git/commitdiff
Cmake build: Move use of QT5 libraries to the end of linker command line.
authorKornel Benko <kornel@lyx.org>
Mon, 11 Aug 2014 19:30:21 +0000 (21:30 +0200)
committerKornel Benko <kornel@lyx.org>
Mon, 11 Aug 2014 19:30:21 +0000 (21:30 +0200)
To prevent the linker error if they were before some object file referencing
some symbol there.

src/CMakeLists.txt

index 44805ed355dcbac35fa15340e941b89c4fc1887f..31b5bfd32f68a6ee24fdaadaf2c97eff389c481c 100644 (file)
@@ -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)