Specify full path to Windows find.exe, so GNU find is never used.

Argument to @contains()@ is @enabled@, not @-m64@, otherwise it will always return true.
This commit is contained in:
Mathew Sutcliffe
2013-09-21 23:54:56 +01:00
parent 0d2742fe96
commit 0a6fbb8aac

View File

@@ -35,8 +35,9 @@ win32:contains(QMAKE_TARGET.arch, x86) {
}
win32-g++ {
MINGW = $$system($$QMAKE_CXX -Q --help=target | find \"-m64\")
contains(MINGW,-m64) {
WIN_FIND = $$(SYSTEMROOT)\system32\find
MINGW64 = $$system($$QMAKE_CXX -Q --help=target | $$WIN_FIND \"-m64\")
contains(MINGW64,enabled) {
LIBS *= -L$$EXTERNALDIR/mingw64/lib
}
else {