Yubico / yubico-piv-tool

Command line tool for the YubiKey PIV application
https://developers.yubico.com/yubico-piv-tool
BSD 2-Clause "Simplified" License
300 stars 99 forks source link

cmake: fix semicolons in CFLAGS of custom modules #475

Open wfrisch opened 9 months ago

wfrisch commented 9 months ago

Both openssl.cmake and pcscd.cmake use FindPkgConfig to retrieve the required CFLAGS and LDFLAGS. However FindPkgConfig returns lists, which are stored as semicolon-separated strings in CMake. This breaks the build when there's more than one flag in any of those variables.

Fixes https://github.com/Yubico/yubico-piv-tool/issues/474