News for hackers. Stuff that matters.
Re:LearnCPP: Website devoted to teaching you how to program ... by dongping on Tuesday January 03, 2023 @10:58AM (#34233094)
Honestly, I find the usage of the adjective "modern" deceptive and insincere in the marketing term "Modern CMake". The "modern" scripting language doesn't even support return values and the variables lack basic type-safety. It breaks for anything beyond a simple Hello World.

I would recommend any other C++ build tools that use a proper programming language for scripting, be it Meson or Bazel.

Re:LearnCPP: Website devoted to teaching you how to program ... by galangalalgol on Tuesday January 03, 2023 @12:14PM (#34234334)
I dislike cmake, so when a sibling post mentioned meson I went looking. It doesn't seem to have good support for cuda, and neither does bazel, to the point I don't immediately find anyone getting it to work. These days the only reason I start a project at work in c++ instead of rust is to use cuda, so that would be a strong consideration. Is this easier than my brief glance would indicate?
Re:LearnCPP: Website devoted to teaching you how to program ... by dongping on Tuesday January 03, 2023 @12:29PM (#34234616)
I have yet to encounter problems with Cuda in our Bazel environment, but I don't have to maintain the Bazel rules, since our build infra team does that.

I would think that rules like https://github.com/liuliu/rules_cuda should work for you in Bazel. (Tensorflow also uses Bazel, so I don't think that this should be a problem.)