Skip to content

CMake imported target is not taocpp::json anymore #114

@SpaceIm

Description

@SpaceIm

47edc2f has changed logical target name from json to taocpp-json. But it also changes imported target name as a side effect, which is not taocpp::json anymore (like the ALIAS target which did not change), but taocpp::taocpp-json.

To avoid breaking change in imported target name, you should add to CMakeLists:

set_target_properties(taocpp-json PROPERTIES EXPORT_NAME json)

https://cmake.org/cmake/help/latest/prop_tgt/EXPORT_NAME.html

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