Add support for BINDIR environmental variable
cross-compile environments usually puts binary in a specified directory, e.g. /usr/x86_64/bin, while installing other files in a shared directory, like /usr/share. Therefore supporting BINDIR is required.
This commit is contained in:
parent
e19e3b8ff9
commit
d7003dc734
|
@ -59,7 +59,11 @@ unix:!mac:isEmpty(PREFIX) {
|
||||||
message("Install PREFIX not set; using /usr/local. You can change this with 'qmake PREFIX=...'")
|
message("Install PREFIX not set; using /usr/local. You can change this with 'qmake PREFIX=...'")
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
}
|
}
|
||||||
unix:target.path = $$PREFIX/bin
|
unix:!mac:isEmpty(BINDIR) {
|
||||||
|
message("Install BINDIR not set; using /usr/local. You can change this with 'qmake BINDIR=...'")
|
||||||
|
BINDIR = $$PREFIX/bin
|
||||||
|
}
|
||||||
|
unix:target.path = $$BINDIR
|
||||||
win32:target.path = $$PREFIX
|
win32:target.path = $$PREFIX
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue