Skip to content

Remove -std=c++11 flag from CMakeLists.txt #548

@tdalman

Description

@tdalman

Compiling jsoncpp with a fairly old cross-gcc (4.6) fails for me, because it does not support -std=c++11. Instead, I would have to set -std=c++0x.

With CMake, rather than specifying the -std= flag, CXX_EXTENSIONS automatically enables C++11 if available (which is on by default).

My proposal is to remove -std=c++11 entirely from CMakeLists.txt. I can provide a patch if needed.
Also, checks for required C++11 compiler features could be added to further improve portability.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions