microsoft / microsoft/vscode-cmake-tools

Add files do not trigger re-configurate with glob & `CONFIGURE_DEPENDS` flag

Open
#3,558 3 comments 1 reaction 0 assignees View on GitHub
enhancement Feature: configure more votes needed
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

Add files do not trigger re-configurate with glob & `CONFIGURE_DEPENDS` flag

For my buildscript:
```cmake
file(GLOB_RECURSE CORE_SOURCES CONFIGURE_DEPENDS SOURCES "Core/*.*")
```

What I expected is to re-configurate automatically when I add some files under `Core/` directory.
While `cmake --build` actually does the re-configuration, it still makes IntelliSense run into mistakes as it re-configurates too late.

### CMake Tools Diagnostics

_No response_

### Debug Log

_No response_

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the provided file(GLOB_RECURSE ... CONFIGURE_DEPENDS ...) example and an added file under Core/. Trace how CMake Tools detects file changes and schedules reconfiguration relative to IntelliSense; done means adding a file triggers configuration before IntelliSense uses the stale project state.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.