cmake: Expand generator exps in libobs pkgconfig#10008
cmake: Expand generator exps in libobs pkgconfig#10008hufman wants to merge 1 commit intoobsproject:masterfrom
Conversation
Non-x86 platforms use a generator expression to add the -fopenmp flag so render this expression before writing out any pkgconfig file Should fix obsproject#7972 and obsproject#7990
045fdc1 to
2ad4758
Compare
|
Linux' build system is slated to be put into "legacy" mode anyway with #9787 waiting for #9769 to be merged. #9787 will ship a handcrafted pkg-config file instead because it is not possible to properly resolve all generator expressions (it's a feature not possible with pkg-config) but even then it's only a workaround for environments where CMake is not available. |
|
Looking forward to it! But it seemed like the existing pkgconfig issues hadn't received any updates in a year, so I threw in my contribution to help :) |
Description
Expand generator exps in libobs pkgconfig
Non-x86 platforms use a generator expression to add a -fopenmp flag so make sure to render this expression while writing out any pkgconfig file
Motivation and Context
Should fix #7972 and #7990 where the generator expression gets inserted into libobs.pc
How Has This Been Tested?
I've added this patch into the Nix build on my ARM64 Linux machine, and tried to compile some plugins against the libobs.pc output.
Types of changes
Checklist: