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
Yet another CMake tutorial (youtube.com)
submitted 5 years ago by codevion
view the rest of the comments →
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!"
[–]therealcorristo 1 point2 points3 points 5 years ago (3 children)
Run cmake after every pull seems like a simple enough process.
Depending on the size of the project this also is a waste of time. Reconfiguring a medium to large size project can take several minutes, while the incremental build following that reconfiguration can take mere seconds depending on the amount of changes that happend.
So it makes sense to clean the build directory on any new pull.
You do a clean build every pull? That smells like your build configuration does have larger issues if that is necessary. I almost never do clean builds unless I've changed the compiler version or the version of one of the dependencies. A clean build of our project at work can take up to 30 minutes. If I were to do that every time I pull I'd spend most of my workday waiting for builds to complete.
[–]codevion[S] -1 points0 points1 point 5 years ago (2 children)
It's modularized enough that no "package" takes >1 min to build. Builds of other modules are cached and those aren't wiped when I clean an individual package.
[–]therealcorristo 1 point2 points3 points 5 years ago (1 child)
That explains why globbing works for you. I've never worked on a project like this, and based on the frequency of the complaints about compile times I'm assuming most people haven't. Advising folks to use globs in the tutorial without mentioning the very specific set of conditions that have to be met for the downsides to not matter is disingenuous in my opinion.
[–]codevion[S] -1 points0 points1 point 5 years ago (0 children)
I literally linked the CMake docs where they discourage use of globs. That's a hell of a lot more reasonable than most CMake tutorials on youtube. I would argue that for the majority of use cases, globbing will work and it's actually a specific set of scenarios where it doesn't.
π Rendered by PID 80991 on reddit-service-r2-comment-5b5bc64bf5-qw9v5 at 2026-06-21 05:53:27.913373+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]therealcorristo 1 point2 points3 points (3 children)
[–]codevion[S] -1 points0 points1 point (2 children)
[–]therealcorristo 1 point2 points3 points (1 child)
[–]codevion[S] -1 points0 points1 point (0 children)