External yyjson and REFLECTCPP_USE_BUNDLED_DEPENDENCIES=OFF does not work · Issue #433 · getml/reflect-cpp · GitHub
More Web Proxy on the site http://driver.im/
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
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.
The problem is yyjson does not export a target yyjson::yyjson as assumed in
@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.
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.
The problem is
yyjson
does not export a targetyyjson::yyjson
as assumed inreflect-cpp/CMakeLists.txt
Line 172 in f86cdb5
but just a plain
yyjson
, see https://ibireme.github.io/yyjson/doc/doxygen/html/building-and-testing.html#use-cmake-as-a-dependencyTherefore, this has to be fixed here or yyjson should export the target in a more best practice style.
The text was updated successfully, but these errors were encountered: