Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 9.0.0
-
None
-
Windows 11
CMake 3.24.0
MinGW 8.1.0
Ninja 1.11.1
Qt Creator 9.0.0
CLion 2022.3
VSCode 1.74.1
CMake Tools 1.13.29
-
-
70b338868 (9.0)
Description
Problem Description
The following example CMakePresets.json can work with VSCode (CMake Tools) and CLion. However, QtCreator "cannot" do so. Hope QtCreator can fix it.
- Demo Project: test-cmake-preset-mingw.zip
CMakePresets.json:
{ "version": 3, "cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 }, "configurePresets": [ { "name": "win32-mingw-gcc-x64-ninja-debug", "displayName": "Windows MinGW GCC x64 (Ninja) Debug", "description": "Using MinGW GCC x64 compiler with \"Ninja\" generator on Windows - Debug", "generator": "Ninja", "environment": { "PATH": "C:\\Qt\\Tools\\mingw810_64\\bin;$penv{PATH}" }, "cmakeExecutable": "C:/Program Files/CMake/bin/cmake.exe", "binaryDir": "${sourceDir}/build/${presetName}", "installDir": "${sourceDir}/install/${presetName}", "cacheVariables": { "CMAKE_C_COMPILER": "gcc.exe", "CMAKE_CXX_COMPILER": "g++.exe", "CMAKE_BUILD_TYPE": "Debug" } } ] }
Error Messages
The following is the error message when building the target in Qt Creator.
14:40:08: Running steps for project test-cmake-preset-mingw... 14:40:08: Starting: "C:\Program Files\CMake\bin\cmake.exe" --build F:/GitRepo/tmp/test-cmake-preset-mingw/build/win32-mingw-gcc-x64-ninja-debug --target main [1/2 45.5/sec] Building CXX object CMakeFiles/main.dir/main.cpp.obj FAILED: CMakeFiles/main.dir/main.cpp.obj C:\Qt\Tools\mingw810_64\bin\g++.exe -g -MD -MT CMakeFiles/main.dir/main.cpp.obj -MF CMakeFiles\main.dir\main.cpp.obj.d -o CMakeFiles/main.dir/main.cpp.obj -c F:/GitRepo/tmp/test-cmake-preset-mingw/main.cpp ninja: build stopped: subcommand failed. 14:40:08: The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1. Error while building/deploying project test-cmake-preset-mingw (kit: Windows MinGW GCC x64 (Ninja) Debug (CMake preset)) The kit Windows MinGW GCC x64 (Ninja) Debug (CMake preset) has configuration issues which might be the root cause for this problem. When executing step "Build" 14:40:08: Elapsed time: 00:00.
Screenshots and GIFs
Attachments
Issue Links
- relates to
-
QTCREATORBUG-28609 CMake Presets kits do not reflect changes in the CMakePresets.json file
- Closed