Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt Creator 14.0.0, Qt Creator 16.0.0
-
None
-
19a13932a45860dec80f410a886408c481114c64
Description
- create a dummy CMake project
- change the add_executable line in the CMakeLists.txt to "add_executable()". Save and ignore the error, or don't save.
- Add e.g. a C++ source files with the wizard. Click through with the defaults, including adding it to the project
-> QtC crashes in CMakeBuildSystem::addSrcFiles,
const std::string target_name = function->Arguments().front().Value;
"function" is the add_executable call, but since that doesn't have any arguments, Arguments().front() leads to a crash.
Attachments
For Gerrit Dashboard: QTCREATORBUG-32745 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
637772,2 | CMakePM: Fix crash when adding files to target having zero arguments | 16.0 | qt-creator/qt-creator | Status: MERGED | +2 | +1 |