GBE: fix terminfo library linkage
authorBoqun Feng <boqun.feng@gmail.com>
Mon, 17 Feb 2014 01:49:26 +0000 (09:49 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 17 Feb 2014 03:21:06 +0000 (11:21 +0800)
commit9acc4ce5d1e4d166f9fb916d3417ea52fbe16b70
tree28ade8908be5414bd8a11de8eb1ba5f46c645d69
parent9b5573858a188eb9ab810171a1d2c7e8396fcb8e
GBE: fix terminfo library linkage

In some distros, the terminal libraries are divided into two
libraries, one is tinfo and the other is ncurses, however, for
other distros, there is only one single ncurses library with
all functions.
In order to link proper terminal library for LLVM, find_library
macro in cmake can be used. In this patch, the tinfo is prefered,
so that it wouldn't affect linkage behavior in distros with tinfo.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
backend/src/CMakeLists.txt