CMake build - did ninja-build become required?

61 views
Skip to first unread message

Jeremy Jacobsohn

unread,
Oct 9, 2022, 11:04:19 AM10/9/22
to or-tools-discuss
I build 'main' on a Debian system with Cmake and Clang 11. Haven't built for a while. After I sync'd from master I got errors about ninja-build. I didn't have that installed, so installed it and re-ran CMake, which resolved the errors.

Looking through the CMake files it appears that ninja-build is supported but not required. However the github build actions appear to install it if it's not present.

 Is it required now - maybe for one of the supporting libraries? 

Laurent Perron

unread,
Oct 9, 2022, 12:18:16 PM10/9/22
to or-tools-discuss
I never need it on Mac or Linux. 

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/8717a2ed-b599-4d15-be3a-1d33b63e0518n%40googlegroups.com.

Jeremy Jacobsohn

unread,
Oct 9, 2022, 1:49:08 PM10/9/22
to or-tools-discuss
Thanks for checking - must be an issue with my CMake configuration.

But - now that I have ninja-build installed I will keep it! Super fast on incremental builds. Thank you Google!

Mizux Seiha

unread,
Oct 10, 2022, 4:28:23 AM10/10/22
to or-tools-discuss
We try to stick to a vanilla, up to date, CMake install.

Since CMake is a build system GENERATOR, it can generate ninja [multi config] build system but it is not mandatory, also by default on unix system, CMake default will generate a Makefile based build system.
Reply all
Reply to author
Forward
0 new messages