diff options
Diffstat (limited to 'luajit-2.1/CMakeLists.txt')
-rw-r--r-- | luajit-2.1/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/luajit-2.1/CMakeLists.txt b/luajit-2.1/CMakeLists.txt index cee0204..eac0894 100644 --- a/luajit-2.1/CMakeLists.txt +++ b/luajit-2.1/CMakeLists.txt @@ -165,6 +165,11 @@ if ( LUA_USE_LIBM ) list ( APPEND LIBS m ) endif () +CHECK_LIBRARY_EXISTS(ncurses printw "" LUA_USE_LIBNCURSES) +if ( LUA_USE_LIBNCURSES ) + list ( APPEND LIBS ncurses ) +endif () + SET(CMAKE_THREAD_PREFER_PTHREAD TRUE) FIND_PACKAGE(Threads) IF(THREADS_FOUND) |