Skip to content

Remove possibility to change CMAKE_CXX_STANDARD #3252

@SunBlack

Description

@SunBlack

#2690 added

set(CMAKE_CXX_STANDARD 14 CACHE STRING "The target C++ standard. PCL requires C++14 or higher.")

It is nice that we can switch C++14 and C++17, but we only support C++14, because we don't touch 3rd-Party code and with C++17 you get following error message:

/media/sf_pcl/surface/src/3rdparty/opennurbs/opennurbs_evaluate_nurbs.cpp:512:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  register double alpha0;
  ^~~~~~~~~
/media/sf_pcl/surface/src/3rdparty/opennurbs/opennurbs_evaluate_nurbs.cpp:513:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  register double alpha1;
...

So we remove the option to allow the user to change the standard, as we know, only C++14 works and nothing other.

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