Skip to content

Not able to create ALIAS target. #1276

Closed
@ssdbest

Description

@ssdbest

jsoncpp 1.8.4 creates target jsoncpp_lib_static where as 1.9.4 creates jsoncpp_static. We use 1.8.4 for some platforms and 1.9.4 for some. This makes us to use if else ladder in our scripts.
Instead we can create ALIAS using cmake add_library(jsoncpp_lib_static ALIAS jsoncpp_static)
this is failing because jsoncpp is not creating global target.
jsoncpp should import targets with global scope.
add_library(jsoncpp_static STATIC EXPORTED GLOBAL)

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