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
This commit is contained in:
panaut0lordv
2009-06-19 22:46:11 +02:00
parent 3155500096
commit 76049024f4
2 changed files with 12 additions and 1 deletions
+6
View File
@@ -19,6 +19,7 @@ OPTION(DO_DEBUG "Debug mode" 0)
OPTION(DO_WARN "Enable all compile warnings" 0) OPTION(DO_WARN "Enable all compile warnings" 0)
OPTION(LARGE_CELL "Large cell size" 0) OPTION(LARGE_CELL "Large cell size" 0)
OPTION(SHORT_SLEEP "Short sleep" 0) OPTION(SHORT_SLEEP "Short sleep" 0)
OPTION(CENTOS "Compile with termcap" 0)
SET(GENREV_SRC SET(GENREV_SRC
src/tools/genrevision/genrevision.cpp src/tools/genrevision/genrevision.cpp
@@ -126,6 +127,11 @@ else(SHORT_SLEEP)
message("* System sleep time is 100ms") message("* System sleep time is 100ms")
endif(SHORT_SLEEP) endif(SHORT_SLEEP)
if(CENTOS)
add_definitions(-DCENTOS)
message("* Building with termcap")
endif(CENTOS)
FIND_ACE(ACE) FIND_ACE(ACE)
if(ACE_FOUND) if(ACE_FOUND)
message(STATUS "Found ACE library: ${ACE_LIBRARY}") message(STATUS "Found ACE library: ${ACE_LIBRARY}")
+6 -1
View File
@@ -43,7 +43,6 @@ trinityauth
trinityconfig trinityconfig
vmaps vmaps
ZThread ZThread
termcap
g3dlite g3dlite
readline readline
gomp gomp
@@ -56,6 +55,12 @@ ${ZLIB}
${OSX_LIBS} ${OSX_LIBS}
) )
IF (CENTOS)
target_link_libraries(
termcap
)
ENDIF (CENTOS)
install(TARGETS trinity-core DESTINATION bin) install(TARGETS trinity-core DESTINATION bin)