Problem with xmlpattterns and qhelpgenerator find_program(...) calls
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Pass QT_BINARY_DIR as HINTS to find_program(...)
When trying to locate xmlpatterns and qhelpgenerator QT_BINARY_DIR should be passed as HINTS rather than PATHS. Otherwise, we can end up with qmake being specified but system versions of xmlpatterns and qhelpgenerator being used (as the standard system environment variable PATH is searched before looking at PATHS), if these versions don't match it can cause problems.