diff options
author | panaut0lordv <panaut0lordv@gmail.com> | 2009-06-19 22:46:11 +0200 |
---|---|---|
committer | panaut0lordv <panaut0lordv@gmail.com> | 2009-06-19 22:46:11 +0200 |
commit | 76049024f4ee5515e6da63a07c6c91abd2017867 (patch) | |
tree | 6a9b5560c51749d50237d085c2aa8fd6948e6063 | |
parent | 3155500096ba4473deeef75148718aa1ae268bf7 (diff) |
CentOS users - please use -DCENTOS=1, as termcap for everyone causes linking errors sometimes.
Source - http://www.trinitycore.org/forum/project.php?issueid=3800
We shouldn't install 9999 packets just because on distro need them. So here we are.
--HG--
branch : trunk
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/trinitycore/CMakeLists.txt | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fa43cc7b27..7dbbe41f192 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ OPTION(DO_DEBUG "Debug mode" 0) OPTION(DO_WARN "Enable all compile warnings" 0) OPTION(LARGE_CELL "Large cell size" 0) OPTION(SHORT_SLEEP "Short sleep" 0) +OPTION(CENTOS "Compile with termcap" 0) SET(GENREV_SRC src/tools/genrevision/genrevision.cpp @@ -126,6 +127,11 @@ else(SHORT_SLEEP) message("* System sleep time is 100ms") endif(SHORT_SLEEP) +if(CENTOS) +add_definitions(-DCENTOS) +message("* Building with termcap") +endif(CENTOS) + FIND_ACE(ACE) if(ACE_FOUND) message(STATUS "Found ACE library: ${ACE_LIBRARY}") diff --git a/src/trinitycore/CMakeLists.txt b/src/trinitycore/CMakeLists.txt index 81dfb849ce7..dd286adc75e 100644 --- a/src/trinitycore/CMakeLists.txt +++ b/src/trinitycore/CMakeLists.txt @@ -43,7 +43,6 @@ trinityauth trinityconfig vmaps ZThread -termcap g3dlite readline gomp @@ -56,6 +55,12 @@ ${ZLIB} ${OSX_LIBS} ) +IF (CENTOS) +target_link_libraries( +termcap +) +ENDIF (CENTOS) + install(TARGETS trinity-core DESTINATION bin) |