cburstedde / libsc

The "sc" auxiliary library
www.p4est.org/
GNU Lesser General Public License v2.1
36 stars 34 forks source link

Fix linking with jansson when using installed libsc built with cmake. #136

Closed pkestene closed 1 year ago

pkestene commented 1 year ago

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.

cburstedde commented 1 year ago

Thanks again!