the problem was report in p4est issue https://github.com/cburstedde/p4est/issues/227 :
when p4est is using an installed version of libsc (built with cmake), file SC-targets.cmake was kind of ill-formed, because linking variable was referencing jansson as PkgConfig::LIBSC_JANSSON instead of jansson::jansson
Proposed changes:
this PR fixes the problem found in this particular case.
Fix linking with libjansson
the problem was report in p4est issue https://github.com/cburstedde/p4est/issues/227 : when p4est is using an installed version of libsc (built with cmake), file SC-targets.cmake was kind of ill-formed, because linking variable was referencing jansson as PkgConfig::LIBSC_JANSSON instead of jansson::jansson
Proposed changes: this PR fixes the problem found in this particular case.