Remove option -DCENTOS, now should automaticaly check if its a CentOS system.

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-06-22 03:45:47 +02:00
parent d05f86a182
commit e3d5e9af36
2 changed files with 10 additions and 9 deletions
+6 -5
View File
@@ -19,7 +19,6 @@ 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
@@ -127,10 +126,12 @@ else(SHORT_SLEEP)
message("* System sleep time is 100ms")
endif(SHORT_SLEEP)
if(CENTOS)
add_definitions(-DCENTOS)
message("* Building with termcap")
endif(CENTOS)
IF(EXISTS /etc/centos-release)
SET(CENTOS 1)
message("* Building with termcap")
else(EXISTS /etc/centos-release)
SET(CENTOS 0)
ENDIF(EXISTS /etc/centos-release)
FIND_ACE(ACE)
if(ACE_FOUND)