Which problem, specifically? Including pthreads support or including C++11 support? pthreads is discussed above... I'd recommend against following the above (outdated) advice for C++11, though... cmake has since integrated C++11 (and later) compiler features into the build tool so it's not tied to a specific compiler - it should check for the features you're using for any given compiler.