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

2018-09-13 Thread Stephen McDowell
Hello, I wanted to revisit this topic. Craig gave a great answer for using add_{compile,link}_options which mostly answers the question -- this is the most modern way at this time. However, I believe that CMake would really benefit from standardizing this. For example, CMAKE_CXX_STL_TYPE. I

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

2018-08-22 Thread Craig Scott
On Wed, Aug 22, 2018 at 1:39 PM, Ian Henriksen < insertinterestingnameh...@gmail.com> wrote: > > > On Tue, Aug 21, 2018 at 6:40 PM Craig Scott > wrote: > >> >> On Wed, Aug 22, 2018 at 7:18 AM, Robert Dailey >> wrote: >> >>> On Tue, Aug 21, 2018 at 3:47 PM Craig Scott >>> wrote: >>> > Excuse

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

2018-08-21 Thread Ian Henriksen
On Tue, Aug 21, 2018 at 6:40 PM Craig Scott wrote: > > On Wed, Aug 22, 2018 at 7:18 AM, Robert Dailey > wrote: > >> On Tue, Aug 21, 2018 at 3:47 PM Craig Scott >> wrote: >> > Excuse the brevity, but it sounds like you might be looking for the >> CXX_EXTENSIONS target property (sorry if I've

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

2018-08-21 Thread Craig Scott
On Wed, Aug 22, 2018 at 7:18 AM, Robert Dailey wrote: > On Tue, Aug 21, 2018 at 3:47 PM Craig Scott > 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

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

2018-08-21 Thread Robert Dailey
On Tue, Aug 21, 2018 at 3:47 PM Craig Scott 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

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

2018-08-21 Thread Craig Scott
On Tue, Aug 21, 2018 at 11:41 PM, Robert Dailey wrote: > I'll explain a bit why I'm asking. I noticed that for code bases that > work on Android plus other UNIX platforms, they unconditionally > specify `-stdlib=libc++`, however this doesn't work on Ubuntu by > default, which uses gnu stl +