CMake-Tools does not reconfigure after change of CMakeLists.txt in subdirectory of root #1911
Labels
bug
a bug in the product
Feature: configure
fixed (release pending)
fixed in pre-release and is pending official release
Milestone
Brief Issue Summary
I have a project with a CMakeLists.txt in the root directory and another CMakeLists.txt in subdirectory 'src'. CMakeLists.txt in the root directory contains the command 'add_subdirectory(src)'. Whenever I make a change to src/CMakeLists.txt (i.e. in the subdirectory), CMake does not reconfigure the project automatically. When I make a change to CMakeLists.txt in the root directory, CMake does reconfigure the project automatically, as expected.
Expected:
CMake-Tools should automatically trigger a CMake reconfiguration of the project whenever any of the CMakeLists.txt files in subdirectories of the root directory are modified and saved.
Apparent Behavior:
Platform and Versions
Other Notes/Information
One annoying consequence of the issue: whenever I add a new file (.cpp / .h) to the project, IntelliSense keeps reporting errors (e.g. for #include statements) until I manually trigger a reconfiguration of the project, even though I explicitly add those files to the source list of a target in src/CMakeLists.txt. (see the IntelliSense issue described under https://vector-of-bool.github.io/docs/vscode-cmake-tools/common_issues.html)
The text was updated successfully, but these errors were encountered: