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
This commit is contained in:
click
2010-08-10 19:15:50 +02:00
parent b29e64bd1f
commit 4f9ec558f4
2 changed files with 6 additions and 8 deletions

View File

@@ -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()
#

View File

@@ -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" )