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:
+4
-6
@@ -88,14 +88,12 @@ option(GAMEPCH "Use precompiled headers when compiling game project" 1)
|
|||||||
option(SQL "Copy SQL files during installation" 0)
|
option(SQL "Copy SQL files during installation" 0)
|
||||||
option(WARNINGS "Enable all compile-warnings during compile" 0)
|
option(WARNINGS "Enable all compile-warnings during compile" 0)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Search for readline on *nixbased systems (CLI-handler)
|
||||||
|
#
|
||||||
|
|
||||||
if( UNIX )
|
if( UNIX )
|
||||||
option(CENTOS "CENTOS" 0)
|
|
||||||
if( CENTOS )
|
|
||||||
add_definitions(-DCENTOS)
|
|
||||||
find_termcap()
|
|
||||||
else()
|
|
||||||
find_readline()
|
find_readline()
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ endif()
|
|||||||
add_dependencies(worldserver genrev)
|
add_dependencies(worldserver genrev)
|
||||||
|
|
||||||
if( UNIX )
|
if( UNIX )
|
||||||
set(worldserver_LINK_FLAGS "-pthread ${worldserver_LINK_FLAGS}")
|
set(worldserver_LINK_FLAGS "-pthread -lncurses ${worldserver_LINK_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||||
|
|||||||
Reference in New Issue
Block a user