Skip to content

CMake issue with jsoncpp_lib ALIAS target #384

@marip8

Description

@marip8

The following line fails for me with CMake 3.16.3, resulting in the error: add_library cannot create ALIAS target "jsoncpp_lib" because target "JsonCpp::JsonCpp" is imported but not globally visible.

add_library(jsoncpp_lib ALIAS JsonCpp::JsonCpp)

This error seems to go away with CMake >= 3.25.0 (possibly with an earlier version). This also corresponds to this reported issue.

I think the solution should be to update the minimum CMake version of all packages that perform the operation in the code snippet above (trajopt_sco, trajopt) to CMake >= 3.25.0

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