Re:Allowing CMake functions to return(value)
by Firecracker on Tuesday August 18, 2020 @05:29PM
(#24204571)
Fluffy, could I ask you to give a few more details about how you set this up? Sounds interesting!
Re:Allowing CMake functions to return(value)
by MaxBarraclough on Wednesday August 19, 2020 @04:59AM
(#24208492)
Does it support a variety of operating systems and IDEs, the way CMake does? Can it handle package-detection across all those platforms?
CMake has a terrible scripting language, but its backends are very good. Being able to generate Unix makefiles when working from GNU/Linux, and then generate Visual Studio solution files when working on Windows, is pretty great.
In my last 3 professional C++ projects I’ve actually used Rust’s cargo tool as my build tool for C++ code. Infinitely better than CMake, plus you use Rust as your scripting language for your build system, which has great libraries for it like the cc crate, and pretty much a crate for whatever it is you want to build (eg ispc? no problem).