@sierdzio Thanks. If i don't use the \\ I get the following:
-- Configuring submodule 'qtimageformats'
-- Configuring submodule 'qtlanguageserver'
CMake Error at qtbase/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake:185 (set):
Syntax error in cmake code at
E:/dev/projects/qbittorrent/build/_qt-everywhere-src/www/qt-everywhere-src-6.6.2/qtbase/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake:185
when parsing string
E:\dev\projects\qbittorrent\build\install_msvc64\base\include
Invalid character escape '\d'.
Call Stack (most recent call first):
qtbase/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:11 (include)
qtbase/lib/cmake/Qt6/Qt6Config.cmake:164 (find_package)
qtlanguageserver/CMakeLists.txt:14 (find_package)
-- Configuring incomplete, errors occurred!
CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:1040 (message):
CMake exited with code 1.
So I guess it's thinking the \d in E:\dev is an escape character, hence why I put \\ everywhere. I'm not sure how else to avoid it.
Also, if I use configure -prefix... wouldn't that be using configure.bat implicitly? There is also a configure file (without extension) in the root folder, however that's used for linux installs.
I managed to fix the issue. The problem I think is that I was originally using environment variables in my prefix statement i.e. configure -prefix %PROJECT_ROOT%\%MSVC_FOLDER%\qt5 ... and for some reasonconfigure.bat is interpreting them as empty strings, hence why %PROJECT_ROOT%\%MSVC_FOLDER%\qt5 reduces to \\qt5. I'm not sure the reason configure.bat is the exception, because when I was compiling openssl and zlib, I used the same environment variables in my compile statements for those libraries just fine, within the same x64 Native Tools Command Prompt for VS 2022 session.
Thanks again.