[cmake-developers] [CMake] libc++ usage in CMake with Clang?

Robert Dailey rcdailey.lists at gmail.com
Tue Aug 21 17:18:19 EDT 2018


On Tue, Aug 21, 2018 at 3:47 PM Craig Scott <craig.scott at crascit.com> wrote:
> Excuse the brevity, but it sounds like you might be looking for the CXX_EXTENSIONS target property (sorry if I've misunderstood your problem, let me know why it isn't appropriate if so). See the following article for a more complete overview of this and related properties:
>
> https://crascit.com/2015/03/28/enabling-cxx11-in-cmake/

Unfortunately that's not the same. Extensions manage C++ language
features and STL capabilities, but -stdlib is for selecting an STL
implementation, AFAIK. Such as GNU STL and LLVM STL (which is libc++
to clang).


More information about the cmake-developers mailing list