[cmake-developers] Using CMake to build big projects with cross-dependencies
Bill Hoffman
bill.hoffman at kitware.com
Thu May 17 13:59:36 EDT 2018
On 5/17/2018 11:46 AM, Brad King wrote:
> On 05/17/2018 05:56 AM, Kinga Kasa wrote:
>> cmake running for hours and hours (stuck at saying Configuring done,
>> eventually it will finish, but it runs for hours).
> That's not expected. Even on projects with tens of thousands of
> source files and thousands of libraries and executables it typically
> takes only a few minutes. You could try breaking in the debugger
> locally during generation to see what it's doing. Or, you could
> try bisecting your project's content to get a smaller example that
> reproduces the long generation time.
Another quick way to see what is going on is to run cmake with the
--trace option:
cmake . --trace
It will produce a lot of output but you should be able to see if it is
repeating something or getting stuck on some operation.
-Bill
More information about the cmake-developers
mailing list