I included
PREFIX = /usr/local
inside my project file and then I run
qmake myproject.pro
The makefile doesn’t say anything about PREFIX though so I assume that i’m doing something wrong. Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PREFIX doesn’t mean anything in qmake files. The target for files is done via the
targetparameter. So if you want to make PREFIX determine the base location, such as/usr/local, you can do do something like this:The
isEmpty(PREFIX)will allow it to be changed during the command line call to qmake, e.g.