4 ms·
CMake
by lmm 14y ago
CMake
- craftkiller 14y agoPersonally I'd suggest Premake because it uses Lua instead of rolling its own scripting language. The world would be a better place if we could all agree on one scripting language for stuff like this so no one has to look up the syntax for things like creating arrays for every individual tool. Feature-wise premake isn't entirely caught up to CMake but it has everything important. Also the premake files look a lot cleaner and more readable compared to cmake files.
- leif 14y agohttp://xkcd.com/927 http://xkcd.com/927
- quotemstr 14y ago> The world would be a better place if we could all agree on one scripting language for stuff like this It's called bloody "make". If Prolog is a language, so is make. Make is still a scripting language even if it's not boneheadedly sequential and imperative the way, say, Python is.
- deleted 14y ago[deleted]
- Peaker 14y agoMake is simply not up to the job. It make writing correct build systems very difficult (hard to not under-specify dependencies). It does not support auto-generating code and then scanning it for extra build dependencies. It is a crappy tool and we should standardize on something better.
- lmm 14y agoIf what you want is a standardized language Scons has that and is a bit more established.
- swift 14y agoCMake is pretty ugly in its own right, though I will grant it's hard to be worse than GNU make.
- jahewson 14y agoCMake is an abomination
- xymostech 14y agoMind pointing out any constructive arguments against it? I recently switched over from hand-built makefiles to cmake for one of my projects, and it's been a breeze.
- wtracy 14y agoI have never been able to figure out how to cross-compile a project that uses CMake. GNU Make lets you just set some environment flags and drop in a different compiler.
- cmccabe 14y agoCMake honors the same environment variables as Make. Just set them before running CMake. CMake also supports cross-compiling. www.vtk.org/Wiki/CMake_Cross_Compiling
- quotemstr 14y agoI prefer autotools to CMake. Maybe I didn't really give CMake a fair shot, but in a few hours of trying, I couldn't out figure out the CMake equivalent to a bit of custom glue code in configure.ac that checked for a Lisp compiler. I get the feeling CMake works fine as long as you color within the lines, but that it's much harder to extend than autotools is.
- McUsr 14y agoYes, this is something I have thought through, though I may have been lucky/unlucky with my pick of projects. But generally speaking, installs I have installed based on GNU autotools, seems to install with less fuzz than those with C-Make. So, that, and the fact that there is full free documentation of GNU Autotools, even books out there, have made my personal choice easy. For me the overall factor is the ease for any of my users, installing something I have written.