From 4f9ec558f41c3eeb1a5279fd7cc4dfbaedfaab4c Mon Sep 17 00:00:00 2001 From: click Date: Tue, 10 Aug 2010 19:15:50 +0200 Subject: Buildsystem/Linux: Remove -DCENTOS flag and enforce linking with ncurses in case of older revisions of CentOS (thanks to QAston and vaska94/kingwee) Closes issue 2908 --HG-- branch : trunk --- CMakeLists.txt | 12 +++++------- src/server/worldserver/CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 024913bd5c7..86e51747b8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,14 +88,12 @@ option(GAMEPCH "Use precompiled headers when compiling game project" 1) option(SQL "Copy SQL files during installation" 0) option(WARNINGS "Enable all compile-warnings during compile" 0) +# +# Search for readline on *nixbased systems (CLI-handler) +# + if( UNIX ) - option(CENTOS "CENTOS" 0) - if( CENTOS ) - add_definitions(-DCENTOS) - find_termcap() - else() - find_readline() - endif() + find_readline() endif() # diff --git a/src/server/worldserver/CMakeLists.txt b/src/server/worldserver/CMakeLists.txt index f32c574135b..d73a25f2354 100644 --- a/src/server/worldserver/CMakeLists.txt +++ b/src/server/worldserver/CMakeLists.txt @@ -138,7 +138,7 @@ endif() add_dependencies(worldserver genrev) if( UNIX ) - set(worldserver_LINK_FLAGS "-pthread ${worldserver_LINK_FLAGS}") + set(worldserver_LINK_FLAGS "-pthread -lncurses ${worldserver_LINK_FLAGS}") endif() if( CMAKE_SYSTEM_NAME MATCHES "Darwin" ) -- cgit v1.2.3