jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.76k stars 616 forks source link

Fix missing variables in pkg-config file #463

Closed arcturis closed 2 years ago

arcturis commented 3 years ago

Fix for #456, the ws2811.pc file's variables were blank because CMake's GNUInstallDirs needs to be included to access certain CMAKE_INSTALL_<dir> variables.

I've also fixed the version string in the file as it was just set to 0.0.0.

I've tested this out on Ubuntu Stretch with CMake 3.20.2 as well as Raspbian Stretch with CMake 3.11.1 and they are both producing the correct file that can be used with pkg-config.

Gadgetoid commented 2 years ago

Thank you!