Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10692

CMake should use system default C++ standard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 6.24/00
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      Ubuntu 20.04

      Description

      $ echo '' | g++ -E -dM -fsyntax-only -x c++ - |grep __cplusplus
      #define __cplusplus 201402L
      

      We build with C++11 by default, unless another standard is requested through CMAKE_CXX_STANDARD:

      $ cmake ../root
      ...
      -- Compiler Flags: -O3 -DNDEBUG  -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
      

      This should be changed to take the system default by default. We should fix this before releasing binaries on affected platforms.

        Attachments

          Activity

            People

            Assignee:
            eguiraud Enrico Guiraud
            Reporter:
            axel Axel Naumann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: