projects/uci: lua: use built in pkg-config support for alternatives
authorKarl Palsson <karlp@remake.is>
Fri, 15 Apr 2016 15:12:18 +0000 (15:12 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 22 Apr 2016 20:08:31 +0000 (22:08 +0200)
commite1bf4356e1b513e158e1b5049147087ed6342cfd
tree62ce6680a96e957eb6ee4b76434a7f56b0cd63c7
parentec96e1f93d6d0faa3f3c40f6bcbc0006550281a8
projects/uci: lua: use built in pkg-config support for alternatives

Different distributions have different names for the lua 5.1 package.
Use cmake's built in pkg-config support to search for the first one,
rather than running it explicitly and searching for a single version.

Signed-off-by: Karl Palsson <karlp@remake.is>
lua/CMakeLists.txt