- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
P2: Important
 - 
    Qt Creator 10.0.0, Qt Creator 10.0.1
 - 
    cmake=3.26.3
 
- 
        
 - 
        423315178 (12.0)
 
This is a simple and buggy project with only one directory.
# file structure
Test/
├── CMakeLists.txt
├── main.c
└── inc1/
    └── a.h
# project view
Test/
├── a.h  <- no header dir !!
└── main.c
A project having two or more header directories will be fine.
# file structure
Test/
├── CMakeLists.txt
├── main.c
├── inc1/
│   └── a.h
└── inc2/
    └── b.h
# project view
Test/
├── main.c
├── inc1/
│   └── a.h
└── inc2/
    └── b.h
Feel free to use this shell script to create a reproducible project.
#!/bin/sh function _gen_fake_files() { mkdir -p inc1 inc2 : > main.c : > inc1/a.h : > inc2/b.h } function _gen_cmake_file() { cat > CMakeLists.txt << EOF cmake_minimum_required(VERSION 2.8) project(Test) add_executable(Test main.c inc1/a.h inc2/b.h # comment out this line to reproduce the bug ) target_include_directories(Test PRIVATE \${CMAKE_CURRENT_SOURCE_DIR} ) EOF } _gen_fake_files _gen_cmake_file
| For Gerrit Dashboard: QTCREATORBUG-29105 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 513304,2 | CMakePM: Fix display of header / source files | 12.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |