Skip to content

CMAKE_CXX_STANDARD BOOL?Β #1427

@N-Dekker

Description

@N-Dekker

.github/workflows/cxx-python.yml overrules the C++ Standard version used to compile the project, by saying -DCMAKE_CXX_STANDARD:BOOL=20:

itk-cmake-options: '-DCMAKE_CXX_STANDARD:BOOL=20'

Three questions:

  • Why is the C++ Standard version specified as a Boolean value? That looks like a bug.
  • Is it useful to specify its type anyway? Wouldn't -DCMAKE_CXX_STANDARD=20 work just fine?
  • Wouldn't it be preferable to "hard-code" the C++ Standard version in the CMakeLists.txt, instead of specifying this "on the fly", at the yml/cmake command-line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions