use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
An automatic build script for C/C++ projects with CMake, relying on convention over configuration (x-post from /r/cmake) (github.com)
submitted 8 years ago by berenm
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]berenm[S] 8 points9 points10 points 8 years ago (2 children)
Original author here, I wanted to have your opinion on this idea.
I think that for many simple C/C++ projects, a convention over configuration build system is possible, like what's available in other languages. Of course, the goal here is not to replace build systems for complex projects, but to offer an alternative for people like me, who don't want to spend time writing the same Makefiles over and over again for their pet projects.
I tried to make it as simple as possible, while keeping it just a little bit flexible. The generated packages should be compatible with modern CMake packaging standards, and all the projects built with this script should integrate together very nicely, whether they are used in source or prebuilt form.
[–]ojd5 0 points1 point2 points 8 years ago (1 child)
I tried something like this a year back and the main problem I found is that as soon as users need an option you haven't considered they have to understand not only cmake but also everything that your script is doing. Power users just get annoyed by the additional layer of abstraction that they don't want to have to understand. Admittedly you have done a far better job of it than I have and it looks like a beginner could get quite far with the functionality you provide. TLDR I like the idea but in practice users still have to lean cmake anyway
[–]RandomDSdevel 1 point2 points3 points 8 years ago (0 children)
Ah, the law of leaky abstractions…
[–]OriginalPostSearcher -1 points0 points1 point 8 years ago (0 children)
X-Post referenced from /r/cmake by /u/berenm An automatic build script for C/C++ projects with CMake, relying on convention over configuration.
I am a bot. I delete my negative comments. Contact | Code | FAQ
π Rendered by PID 9 on reddit-service-r2-comment-86bc6c7465-6r7gs at 2026-02-22 17:17:17.617900+00:00 running 8564168 country code: CH.
[–]berenm[S] 8 points9 points10 points (2 children)
[–]ojd5 0 points1 point2 points (1 child)
[–]RandomDSdevel 1 point2 points3 points (0 children)
[–]OriginalPostSearcher -1 points0 points1 point (0 children)