tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cmake-3.12.2 fails on arm



On Mon, Sep 10, 2018 at 04:34:41PM +0200, Martin Husemann wrote:
> On Mon, Sep 10, 2018 at 04:27:34PM +0200, Manuel Bouyer wrote:
> > CMake Error at CMakeLists.txt:92 (message):
> >   The C++ compiler does not support C++11 (e.g.  std::unique_ptr).
> 
> What flags is it using?

CMake 3.12.2, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: gcc -O2 -DwxDEBUG_LEVEL=0 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/include/krb5 -I/usr/pkg/include/ncurses      
C++ compiler on this system is: c++ -O2 -DwxDEBUG_LEVEL=0 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/include/krb5 -I/usr/pkg/include/ncurses         

> 
> This works for me:
> 
> --8<--
> [/tmp] martin@space-truckin > c++ -Wall -O2 test.cc
> [/tmp] martin@space-truckin > cat test.cc 
> #include <memory>
> 
> struct Foo {
>         Foo() {}
>         ~Foo() {}
> };
> 
> int main(void)
> {
>         std::unique_ptr<Foo> pl(new Foo);
>         return 0;
> }

For me too. Will look closer at what cmake does ...

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index