Skip to content

Properties can not be integers #148

@ZehMatt

Description

@ZehMatt

If one copies the snippet from the reference https://cmkr.build/cmake-toml/#targets:

# See https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html#properties-on-targets for a list of target properties
[target.mytarget.properties]
CXX_STANDARD = 17
CXX_STANDARD_REQUIRED = true
FOLDER = "MyFolder"

cmkr will show following error:

[error] toml::value::as_string(): bad_cast to string
 --> F:\C++\Buggerino\cmake.toml
    |
 12 | CXX_STANDARD = 17
    |                ~~ the actual type is integer

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