Skip to content

Export APSI::apsi with the JsonCpp::JsonCpp target #84

Description

APSI's exported APSI::apsi target links the bare CMake target jsoncpp_static. With vcpkg's dynamic jsoncpp build, that target is not defined; the package provides the stable JsonCpp::JsonCpp target instead. As a result, a downstream find_package(APSI CONFIG REQUIRED) consumer configures but fails to link with jsoncpp_static.lib not found.

Replacing jsoncpp_static with JsonCpp::JsonCpp in target_link_libraries(apsi ...) fixes both Release and Debug consumers while continuing to work with jsoncpp's installed CMake package.

This was found while validating microsoft/vcpkg#53313.

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