Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation
-
OS: Windows 7 x64 SP1
Qt Creator 4.15.2
Qt 6.1.2 with MinGW 8.1.0Hello.
Pre-info: I have extraction folder of Winlibs package on my disk and also it's bin added to system %PATH% and CMake installed under C:\Program Files\CMake.
I installed Qt Creator without checking MinGW 8.1.0 option under Qt 6.1.2 group, only qt5 compatibility (i thought i could use my external winlibs mingw set). Then I launched Qt Creator -> Options and added my mingw manually. Here I realized my mistake - didn't know that mingw option mean mingw + qt toolkit. I modified installation and everything setup by default.Issue: When I create some Qt Console application with CMake build system (my course requires it) it has some misconfiguration: in Project -> Build Settings -> CMake when I check "Advanced" checkbox I can see variable CMAKE_MAKE_PROGRAM point to: "C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/ninja.exe". I guess it should be "C:\Qt\Tools\Ninja\ninja.exe", and I can change it in my project. But if I press there on CMake "Re-configure with Initial Parameters" or create other new project - that variable again point to my winlibs folder.
I had no compile errors yet, but I don't want IDE to use it in any way (also mingw's are different and ninja.exe modules are different).I looked everywhere in "Tools -> Kits" options but everything was set on default: Desktop Qt 6.1.2 MinGW 64-bit (default) under kits, CMake 3.19.2 (Qt) (Default) under CMake. I reinstalled Qt (with removing manually %LOCALAPPDATA%\QtProject, %APPDATA%\QtProject, %APPDATA%\Qt) but have no luck, so it's probably IDE itself set it automatically (it also find Winlibs and non-qt CMake in Compilers/Debuggers/CMake tabs in Auto-detect category, none of these set though). Is it possible to setup Qt Creator to use only its tools by default? Appreciate any help.
-
@snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:
C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/
Is this in your PATH?
If so try removing it from PATH. -
@jsulm said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:
@snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:
C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/
Is this in your PATH?
If so try removing it from PATH.Yes. Thank you, it worked. But is this the only option to remove other toolkits from system %PATH% or is there option to prevent Qt Creator to seek into %PATH%'s paths?
-
@snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:
or is there option to prevent Qt Creator to seek into %PATH%'s paths?
Try to change PATH in your build environment in QtCreator. But you should in general be careful adding stuff to PATH as it can cause issues like the one you had.