Open JanosGit opened 1 year ago
Looks like an oversight - we should add the dependency conditionally. Thanks for the bug report!
Actually looking closer it looks like it's just an entirely incorrect dependency and should be removed. I will do some more digging to try to work out if I've misunderstood something.
I'm about to integrate
libjsonnet++
in a C++ project that should support processing of jsonnet files. The project is CMake based, so the projects CMakeLists.txt looks somewhat like that:This generates a project that successfully compiles but generates the following warning at CMake configuration time:
I deliberately don't want the jsonnet command line tool target to be created in order to keep the CMake targets of my project clean and tidy, so disabling it and only linking my project against
libjsonnet++_static
seems like the right thing to do. Generally, I'm a bit surprised by these dependencies. Is it just an oversight for the configuration that I'm using or am using it in an unsupported configuration?