ViewTouch / viewtouch

ViewTouch Point of Sale (PoS) - official
http://www.viewtouch.com
GNU General Public License v3.0
170 stars 47 forks source link

cmake: search for PkgConfig before using pkg_check_modules #128

Closed NeroBurner closed 3 years ago

NeroBurner commented 3 years ago

the function pkg_check_modules is used before ever searching for the PkgConfig helper module. I don't know how this ever worked :see_no_evil:

https://cmake.org/cmake/help/latest/module/FindPkgConfig.html

GeneMosher commented 3 years ago

the function pkg_check_modules is used before ever searching for the PkgConfig helper module. I don't know how this ever worked see_no_evil

cmake.org/cmake/help/latest/module/FindPkgConfig.html

Thanks so much, Reinhold !! This fix enables ViewTouch to create a binary on the Asus Tinkerboard 2, which features Linaro and has a USB Type-C interface supporting DisplayPort Alternate Mode. A touchscreen display using only a single USB Type-C cable connecting it to a Raspberry Pi 'workalike' has been long awaited. Perhaps a future version of the RPi will also have this feature. I am building a ViewTouch image for the Tinkerboard as I built one for the RPi.

By the way, I have just noted this morning that Debian Sid (i.e., testing/unstable) has GNU C++ compiler version 11. I believe ViewTouch testing does not yet include testing for GNU C++ version 11.