Force relink when building in QT Creator

扶醉桌前 提交于 2019-12-20 11:36:34

问题


Greetings,

I have a subdirs project which wraps a couple libraries and a main application. When I change something in one of the libraries the main application does not relink with them.. does anyone have a trick for getting an application to relink with its statically linked libs automatically when using QT Creator?

-Dan O


回答1:


There is a workaround for this and also an interesting discussion on the subject (qmake seems to be the problem here) on the Qt Creator mailing list.

The workaround is to add a PRE_TARGETDEPS command to your main applications .pro file, e.g.:

PRE_TARGETDEPS += /path/to/your/lib.a

This forces the relink.



来源:https://stackoverflow.com/questions/1485435/force-relink-when-building-in-qt-creator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!