I do not define DESTDIR
anywhere.
message($$DESTDIR)
prints empty string.
Is there a way to know path to the target binary?
I do not define DESTDIR
anywhere.
message($$DESTDIR)
prints empty string.
Is there a way to know path to the target binary?
In message()
need to use different notation for some reason:
message(DESTDIR: ($$DESTDIR))
I had such problem today. Solved only by looking at qmake .pro files examples in Qt mailing list. Another possible problem - clue variables:
# ${VAR} notation allows to append the contents of the variable to another value
# without separating the two with a space
isEmpty(DESTDIR): DESTDIR = $${IDE_BUILD_TREE}/lib/qtcreator/plugins
Without such notation I got empty DESTDIR
variable. If DESTDIR
is not set, I believe binary stays in build dir.
Another useful link: https://stackoverflow.com/a/7754767/630169