tag:help.appveyor.com,2012-11-13:/discussions/problems/20514-cannot-build-project-after-qt-update-to-5113AppVeyor: Discussion 2019-04-21T21:00:55Ztag:help.appveyor.com,2012-11-13:Comment/469737052019-02-18T22:14:22Z2019-02-18T22:14:22ZCannot build project after Qt update to 5.11.3<div><p>Can you try adding the same path that you have assigned to <code>QTDIR</code> to another environment variable <code>CMAKE_PREFIX_PATH</code> as suggested in the error.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/469737052019-02-18T22:57:27Z2019-02-18T22:57:28ZCannot build project after Qt update to 5.11.3<div><p>I have tried to assign the path to the variable <code>CMAKE_PREFIX_PATH</code> as you suggested like this <code>cmake -DCMAKE_PREFIX_PATH=C:\Qt\5.11\mingw53_32\lib\cmake\Qt5</code> and it works, then I tried to assign it from the environmental variable <code>Qt5_DIR</code> like this: <code>cmake -DCMAKE_PREFIX_PATH=%Qt5_DIR%</code> and it did not work again even though the variable should contain the same path. So I printed all the environmental variables using <code>SET</code> command and found that the variables do not have the expected value, but instead they are still pointing to the old 5.11.2 direcotry:</p>
<pre>
<code>Qt5_DIR=C:\Qt\5.11.2\mingw53_32\lib\cmake\Qt5
QTDIR=C:\Qt\5.11.2\mingw53_32</code>
</pre>
<p>Seems like some kind of bug?</p>
<p>Thanks for the suggestion, I will use the <code>CMAKE_PREFIX_PATH</code> variable until this is resolved.</p>
<p>I attached the log file from the build with printed environmental variables so you can see, that the variables are set to 5.11 directory, but still point to the 5.11.2 directory.</p></div>Martin Omachttag:help.appveyor.com,2012-11-13:Comment/469737052019-02-19T00:12:57Z2019-02-19T00:12:57ZCannot build project after Qt update to 5.11.3<div><p>Perhaps you have that environment variable set in the UI (environment variables set in the UI will overwrite those in the config file as described <a href="https://www.appveyor.com/docs/build-configuration/#appveyoryml-and-ui-coexistence">here</a>)</p></div>Owen McDonnell