[PATCH] CMakeLists.txt: fix paths when FTDIPP is set Use the same project name (i.e. libftdi1 and not libftdipp1) when FTDIPP is enabled as suggested by Aurelien Jarno in http://developer.intra2net.com/mailarchive/html/libftdi/2020/msg00044.html
Without this change, the libftdi1.pc config file defines the include path as /usr/local/include/libftdipp1 while the ftdi.h file is actually installed in /usr/local/include/libftdi1
This is an issue for example for libsigrok which will fail on:
In file included from src/hardware/asix-sigma/protocol.c:27: src/hardware/asix-sigma/protocol.h:28:10: fatal error: ftdi.h: No such file or directory 28 | #include <ftdi.h> | ^~~~~~~~
[PATCH] python: update for SWIG 4.3 SWIG 4.3 comes with an API change to the SWIG_Python_AppendOutput() function, so switch to the recommended SWIG_AppendOutput() instead. Because the new function is a macro in fact also switch to the {..} delimiters as the code needs to be preprocessed. The change is compatible with the previous SWIG releases 4.2 and 4.1 at least.