yosh-matsuda / cpp-yyjson

Ultra-fast and intuitive C++ JSON reader/writer with yyjson backend
MIT License
63 stars 6 forks source link

🔧 Allow superproject to provide dependencies with add_subdirectory() #14

Closed thirtythreeforty closed 7 months ago

thirtythreeforty commented 8 months ago

This lets a superproject vendor cpp-yyjson along with these dependencies, doing something like:

add_subdirectory(yyjson)
add_subdirectory(fmt)
add_subdirectory(nameof)
add_subdirectory(cpp-yyjson)

and cpp-yyjson will use the dependencies provided by the parent Cmake project, without trying to find them installed.

yosh-matsuda commented 7 months ago

Merged, thanks!

thirtythreeforty commented 7 months ago

Thanks! And thanks for the second pass, I overlooked the versioning checks.