]> granicus.if.org Git - json-c/commit
Specify dependent libraries, including -lbsd, in a more consistent way so linking...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 30 May 2022 15:30:11 +0000 (15:30 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 30 May 2022 15:30:11 +0000 (15:30 +0000)
commit2f0942bdd73a2826273d9bdcf1c279bfe205a9e8
tree462fdaedc10448c13a336e9779a2fff3d7363118
parent6ba1adf8efe42742ad2cd542f21bd0109d9ef9dc
Specify dependent libraries, including -lbsd, in a more consistent way so linking against a static json-c works better.  Related issue #766
Use target_link_libraries, plus fill in Libs.private in json-c.pc so pkg-config --static --libs works appropriately.
Also, only link against libbsd when arc4random is actually found there.
CMakeLists.txt