Hm, I think that is a bit of a strong reaction to a single set of slides in a modern C++ course. This is not a CMake course, but some slides on CMake, to show that you should use a build tool. Sure this messes up global set up, but this is not a CMake course. Also, the code without cmake_minimum_required is prefaced with "minimum working example", the code sure as hell works and is also minimal but just throws a warning.
This would be like going into an advanced python course, where one section touches on pybind, and someone would give their C function a name like add and not mylibrary_add and throwing a tantrum over it
View all comments
Show parent comment
2
u/HumansAreIkarran May 04 '26
Hm, I think that is a bit of a strong reaction to a single set of slides in a modern C++ course. This is not a CMake course, but some slides on CMake, to show that you should use a build tool. Sure this messes up global set up, but this is not a CMake course. Also, the code without
cmake_minimum_requiredis prefaced with "minimum working example", the code sure as hell works and is also minimal but just throws a warning.This would be like going into an advanced python course, where one section touches on pybind, and someone would give their C function a name like
addand notmylibrary_addand throwing a tantrum over it