Details
-
Type:
Bug
-
Status: Reported
-
Priority:
Not Evaluated
-
Resolution: Unresolved
-
Affects Version/s: Qt Creator 7.0.2, Qt Creator 8.0.0
-
Fix Version/s: None
-
Component/s: C/C++/Obj-C++ Support, Project & Build Management: CMake
-
Labels:None
-
Environment:Windows:
CMake 3.22.1
MSVC 2022 (Visual C++ Compiler 17.1.32414)
-
Platform/s:
Description
I have a CMakeLists.txt with the follwing contents:
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/*.h) add_library(awalgo INTERFACE ${HEADERS}) target_include_directories(awalgo INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
All files from that library are shown in the Project View, however, when I open some of them in the editor it says "Warning: This file is not part of any project."
If I replace the GLOB_RECURSE with a explicit list of files - nothing changes for those files.
Steps to reproduce:
- git clone git@github.com:absurdworlds/awlib.git
- open the project in Qt Creator
- configure the project with -DAW_ENABLE_GRAPHICS:BOOL=OFF
- open archive/include/aw/archive/archive_base.h
- you should see something like this