cineform-sdk
cineform-sdk copied to clipboard
CMakeList.txt: fixed inconsistent lib name in .pc
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.