Fix build with LDFLAGS=--Wl,--as-needed on Linux

This commit is contained in:
Vladislav Vaintroub 2009-12-19 22:15:10 +01:00
commit 728c437a85
2 changed files with 14 additions and 2 deletions

View file

@ -18,7 +18,7 @@ INCLUDE(CheckIncludeFile)
include(CheckFunctionExists)
CHECK_INCLUDE_FILES(term.h HAVE_TERM_H)
SET(CMAKE_REQUIRED_LIBRARIES ${CURSES_CURSES_LIBRARY})
SET(CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARY})
CHECK_CXX_SOURCE_COMPILES("
#include <term.h>
int main()