Qmake SOURCES vs @SOURCES
-
hi,
i am working for 3 years now with qt versions . after changing my project to work with soft links in windows
sources cannot be found , i have found old qt forum answer suggesting to change
SOURCES which always worked for me to @SOURCES += filename @
now it works, what is the purpose of this @ thing , what did i changed and why it is working now?
anything to do with the soft links? problem disappear when NOT using shadow build, what is going here?
-
Hi,
The @ dates back to an old version of the forum where it was the marker for code blocks (now the forum runs on NodeBB and it's now backticks).
As for your issues with soft link on Windows, you need to give more details with regard to your project, how you use them, which version of Qt and Windows.
-
@orio said in Qmake SOURCES vs @SOURCES:
What does it [@] mean in qmake?
Nothing I am aware of. It does mean something inside a Makefile and also to the Windows CMD shell. So, if it is passed through verbatim it may have an effect at build time.
How do you explain that adding @ to the pro file actually solves the problem?
Since you changed the PRO file you had to either manually rerun qmake, or an existing Makefile did for you. The resulting new Makefile did not have paths that triggered the issue.
It could have something to do with soft links: qmake may have expanded them to the actual location in the new Makefile. Hard links are generally preferred because they are totally transparent to the user.