You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
External yyjson and REFLECTCPP_USE_BUNDLED_DEPENDENCIES=OFF does not work #433
Thanks for this nice library!
I want to use the incremental feature from yyjson 0.11.0. Therefore, I downloaded it and wanted to link to reflect-cpp with REFLECTCPP_USE_BUNDLED_DEPENDENCIES=OFF.
@rath3t
You could also try to set an ALIAS between yyjson and reflectcppfind_package in your CMakeLists.txt, e.g. add_library(yyjson::yyjson ALIAS yyjson)
Thanks for you comments. @Urfoex thsts what Im currently doing,
but I consider it that a bug in the cmake file, thats why I filed the issue.
Unfortunately, the conan receipe https://github.com/conan-io/conan-center-index/blob/master/recipes%2Fyyjson%2Fall%2Fconanfile.py#L68 defines a different target then the original library and why vcpkg also creates this different target with a namespace preprended I dont know. But maybe I misunderstood the mechanism you use.
Activity
liuzicheng1987 commentedon May 9, 2025
@rath3t could you try to use vcpkg to download YYJSON 0.11.0?
The reason we do it the way we do it is because that is what is expected when we use package managers like Conan and vcpkg.
Urfoex commentedon May 12, 2025
@rath3t
You could also try to set an ALIAS between
yyjsonandreflectcppfind_packagein your CMakeLists.txt, e.g.add_library(yyjson::yyjson ALIAS yyjson)rath3t commentedon May 12, 2025
Thanks for you comments. @Urfoex thsts what Im currently doing,
but I consider it that a bug in the cmake file, thats why I filed the issue.
Unfortunately, the conan receipe https://github.com/conan-io/conan-center-index/blob/master/recipes%2Fyyjson%2Fall%2Fconanfile.py#L68 defines a different target then the original library and why vcpkg also creates this different target with a namespace preprended I dont know. But maybe I misunderstood the mechanism you use.