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.
APSI's exported
APSI::apsitarget links the bare CMake targetjsoncpp_static. With vcpkg's dynamicjsoncppbuild, that target is not defined; the package provides the stableJsonCpp::JsonCpptarget instead. As a result, a downstreamfind_package(APSI CONFIG REQUIRED)consumer configures but fails to link withjsoncpp_static.libnot found.Replacing
jsoncpp_staticwithJsonCpp::JsonCppintarget_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.