mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
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:
@@ -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()
|
||||
|
||||
#
|
||||
|
||||
@@ -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" )
|
||||
|
||||
Reference in New Issue
Block a user