CMake reload limits when multiple CMakeLists.txt files change in CLion 2023.2
24.5K reputation · 09 Jul 2020, 07:31 UTC
Issue description
CLion 2023.2 automatically triggers a CMake project reload whenever a CMakeLists.txt file is edited. When two or more such files are modified in quick succession, the IDE typically presents only one reload prompt, leaving the second file’s changes unprocessed. This behavior is documented under CMake project synchronization but remains unresolved for projects that rely on features such as C++20 modules.
Unresolved behavior
The single-reload limitation can cause stale build configurations, especially on Windows where path normalization differences exacerbate the issue. Manual Reload CMake Project actions do not guarantee that all pending changes are applied if the CMake cache is corrupted.
Questions
- Is there a known defect preventing CLion from detecting simultaneous edits to multiple
CMakeLists.txtfiles? - Will upcoming releases of CLion introduce a configuration to force a full reload whenever any CMake file changes?
- Does the IDE support a setting to automatically clean the CMake cache before a reload in multi-file edit scenarios?