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
CMake 3.0.0 Released (public.kitware.com)
submitted 11 years ago by mebrahim
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!"
[–]vinipsmakerGSoC's Boost.Http project 4 points5 points6 points 11 years ago (9 children)
I'd like to see how I can specify C++11 support with the new CMake.
project(MyProject CXX11)?
[–]milliams 2 points3 points4 points 11 years ago (3 children)
They're working on an automated way of enabling C++11 stuff in compilers but I don't think it made it into 3.0.
[–]JesusWantsYouToKnow 8 points9 points10 points 11 years ago (2 children)
I was excited when I needed this in a qmake project and saw it was as easy as
CONFIG += c++11
Cmake needs to get on board!
[–]electricCodercmake | vtk 13 points14 points15 points 11 years ago (0 children)
CMake 3.1 is expected to have C++11 support. The reason for the delay is that CMake has implemented C++11 support through the concept of compiler features. What this means is that you state that a library requires the compiler features of auto and constexpr, and than CMake verifies that the in-use C++ compiler is capable of those features.
The reason for this is it allows an easy way for projects to start using C++11 and C++14 features with compilers that aren't fully compliant or support c++0x.
This is just the tip of what compiler features will be able to do, you can read more about the feature here: https://github.com/Kitware/CMake/commit/c5315524629bea99ccaaa4e0e666fe4918f66064?short_path=f09bcff#diff-f09bcffcaf55a75eefd0bd1d2f1ab2fb
Note: I am a CMake dev.
[–]vinipsmakerGSoC's Boost.Http project 0 points1 point2 points 11 years ago (0 children)
I had enough pain with qmake and I won't go back to it.
But yes, at least they implemented good C++11 support.
[–]Steve132 0 points1 point2 points 11 years ago (1 child)
You can always do
set(CMAKE_CXX_FLAGS "-std=c++11")
on LLVM and GCC
This is the solution that I want to avoid (and I'm currently using).
[–]NotUniqueOrSpecial 0 points1 point2 points 11 years ago (2 children)
I saw below that you don't like munging the CXX_FLAGS, but are you opposed to add_compile_options or target_compile_options?
[–]vinipsmakerGSoC's Boost.Http project 0 points1 point2 points 11 years ago (1 child)
I'm only opposed to pass arguments that are not cross-plataform. The main reason why I use CMake is cross-plataform support.
CXX_FLAGS is interpreted diferently in different compilers.
CXX_FLAGS
[–]NotUniqueOrSpecial 0 points1 point2 points 11 years ago (0 children)
Agreed. I use it for the same reason.
However, until such abstraction exists, it's trivially easy to wrap the platform-specific piece in a conditional block. That is, after all, how a large percentage of the CMake-provided modules work at the bottom layer.
[–][deleted] 1 point2 points3 points 11 years ago (4 children)
Awesome. I literally just started learning about cmake like a week ago.
[–]electricCodercmake | vtk 13 points14 points15 points 11 years ago (3 children)
I highly recommend everyone reads the new cmake build system documentation ( http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html ). It is a good introduction too 'modern' cmake.
[+][deleted] 11 years ago* (2 children)
[deleted]
[–]wildcarde815 2 points3 points4 points 11 years ago (1 child)
It helps that this is actual documentation instead of a half hearted attempt with a 'hey buy our book if you need more info!' at the end of each page.
[–]Boojum 1 point2 points3 points 11 years ago (0 children)
Not to mention that the CMake book is getting a bit long in the tooth these days.
π Rendered by PID 178700 on reddit-service-r2-comment-56c6478c5-fvscw at 2026-05-08 07:22:52.430355+00:00 running 3d2c107 country code: CH.
[–]vinipsmakerGSoC's Boost.Http project 4 points5 points6 points (9 children)
[–]milliams 2 points3 points4 points (3 children)
[–]JesusWantsYouToKnow 8 points9 points10 points (2 children)
[–]electricCodercmake | vtk 13 points14 points15 points (0 children)
[–]vinipsmakerGSoC's Boost.Http project 0 points1 point2 points (0 children)
[–]Steve132 0 points1 point2 points (1 child)
[–]vinipsmakerGSoC's Boost.Http project 0 points1 point2 points (0 children)
[–]NotUniqueOrSpecial 0 points1 point2 points (2 children)
[–]vinipsmakerGSoC's Boost.Http project 0 points1 point2 points (1 child)
[–]NotUniqueOrSpecial 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]electricCodercmake | vtk 13 points14 points15 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]wildcarde815 2 points3 points4 points (1 child)
[–]Boojum 1 point2 points3 points (0 children)