diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-07-28 19:20:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-28 19:20:01 +0300 |
commit | 53077f030191e2465c56c15238e2924f990b039f (patch) | |
tree | 8b18974983eb4045f0cb4bc663176e8438d1edcf | |
parent | 4eb4c5b6c6cf94badadebc8d5c39a1d470950036 (diff) | |
parent | 4ddeadbe1e14b28a092699ba2c19b0f6b9eda861 (diff) |
Merge pull request #33 from yufeiren/master
link ncurses explicitly
-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) |