<div dir="ltr">Hello,<div><br></div><div>I am having some problem with FindQt4.cmake (both in v2.8.11.2 and v2.8.10.2). I have localised the problem to a find_program call and added message() calls around this find_program call.</div>
<div><br></div><div><div> message("--------------------env QTDIR $ENV{QTDIR}")</div><div> </div><div> find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME}</div><div> PATHS</div><div> ENV QTDIR</div><div>
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]"</div><div> PATH_SUFFIXES bin</div><div> DOC "The qmake executable for the Qt installation to use"</div>
<div> )</div><div> </div><div> message("--------------------QT_QMAKE_EXECUTABLE: ${QT_QMAKE_EXECUTABLE}")</div></div><div><br></div><div>The environment variable QTDIR is set to F:/TCT/4.7.4-gefed_vc10_exe-win32-msvc++10.0-64bit</div>
<div><br></div><div>The following is printed to the console:</div><div><br></div><div><div>--------------------env QTDIR F:/TCT/4.7.4-gefed_vc10_exe-win32-msvc++10.0-64bit</div><div>--------------------QT_QMAKE_EXECUTABLE: F:/TCT/4.7.4-gefed_vc10_exe-win32-msvc++10.0-64bit</div>
</div><div><br></div><div>I would expect the QT_QMAKE_EXECUTABLE to point to F:/TCT/4.7.4-gefed_vc10_exe-win32-msvc++10.0-64bit/bin/qmake.exe but it doesn't.</div><div><br></div><div>Is this a bug?</div><div><br></div>
<div>Paul</div><div><br></div><div><br></div><div><br></div></div>