cineform-sdk icon indicating copy to clipboard operation
cineform-sdk copied to clipboard

CMakeList.txt: fixed inconsistent lib name in .pc

Open MartinPulec opened this issue 2 years ago • 0 comments

Hi, I am proposing following patch to CMakeLists.txt. Basically, in Linux/mac, the generated pkg-config file contains wrong library name because of the following line in CMakeLists.txt:

set_target_properties(CFHDCodecStatic PROPERTIES OUTPUT_NAME CFHDCodec)

Because of that, without the patch, the output libcineformsdk.pc file contains -lCFHDCodecStatic while the actual library built is libCFHDCodec.a because the substituted name in pc file is the name of the target, not its OUTPUT_NAME property.

MartinPulec avatar Sep 21 '22 13:09 MartinPulec