by jonpalmisc · 4y ago · 0 comments
It’s like jsonnet to me - if you need config files that make config files something has gone horribly wrong.
Then again, I stopped bothering trying to learn Cmake. If I see Cmake I don’t bother with the project so there’s that - and also not a fan of c++ so I am probably the wrong audience anyway.
cmake_minimum_required(VERSION 3.5)
add_executable(exe file.cpp)
Do you think that's more complicated than the basics of a Makefile? [1] exe: file.cpp
Default rules take care of the rest.And if you argue that the barebones example is insufficient for a real project: absolutely true. The same applies to your cmake example.
Also I've actually checked that Makefile, and it errored out (macOS):
make: Nothing to be done for `exe'.There is a lot to criticize about CMake, but this is just RTFM level silly.
I would like to work with your devops :)