<html><body><div>Hello,<br><br>when I install Qt to the location C:\Qt\QtSDK and then I run cmake, everything is working fine.<br>But if I rename the directory to C:\Qt\QtSDL then cmake have problems to find Qt because qmake.exe isn't patched.<br><br>In qmake.exe the path to the libraries are set to "C:\Qt\QtSDK\..." which is also used for the query command.<br><br>So, if i patch qmake.exe (Rename the directory in the qmake.exe file => works only if the length of the directory name is the same),<br>cmake works fine but the problem is, that cmake tries to find out the location of libraries and so on from the query, which is wrong in my oppinion,<br>because if I want to move the custom build Qt library to another location then cmake doesn't find Qt.<br><br>For example when I rename the directory to C:\Qt\QtSDL and run qmake -query:<br><span style="font-family: courier new,monospace;">QT_INSTALL_PREFIX:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_DATA:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_DOCS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\doc</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_HEADERS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\include</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_LIBS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\lib</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_BINS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\bin</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_PLUGINS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\plugins</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_IMPORTS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\imports</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_TRANSLATIONS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\translations</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_CONFIGURATION:C:/Qt/QtSDK/Desktop/Qt/4.8.1/mingw</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_EXAMPLES:C:\Qt\QtSDK\Examples\4.7</span><br><span style="font-family: courier new,monospace;">QT_INSTALL_DEMOS:C:\Qt\QtSDK\Demos\4.7</span><br><span style="font-family: courier new,monospace;">QMAKE_MKSPECS:C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw\\mkspecs</span><br><span style="font-family: courier new,monospace;">QMAKE_VERSION:2.01a</span><br><span style="font-family: courier new,monospace;">QT_VERSION:4.8.1<br><br><span style="font-family: arial,sans-serif;">When I run it from the drive letter D:, E:, F:, ..., then the result is the same.</span><br></span><br>Best Regards<br>NoRulez<br data-mce-bogus="1"></div></body></html>