How can I measure and diagnose performance bottlenecks in CMake's configure and generate steps?
When working with large CMake projects, the configuration and generation phases can become slow. What systematic approaches (e.g., using CMake's --trace, --trace-expand, time commands, or external profiling tools) can be employed to measure where time is spent, and how can the results be interpreted to identify and mitigate bottlenecks?