Add back -DCENTOS switch for cmake, since the previous solution wasn't working for everyone.
--HG-- branch : trunk
This commit is contained in:
+6
-5
@@ -22,6 +22,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 "CENTOS" 0)
|
||||||
|
|
||||||
SET(GENREV_SRC
|
SET(GENREV_SRC
|
||||||
src/tools/genrevision/genrevision.cpp
|
src/tools/genrevision/genrevision.cpp
|
||||||
@@ -126,12 +127,12 @@ else(SHORT_SLEEP)
|
|||||||
message("* System sleep time is 100ms")
|
message("* System sleep time is 100ms")
|
||||||
endif(SHORT_SLEEP)
|
endif(SHORT_SLEEP)
|
||||||
|
|
||||||
IF(EXISTS /etc/centos-release)
|
IF(CENTOS)
|
||||||
SET(CENTOS 1)
|
add_definitions(-DCENTOS)
|
||||||
message("* Building with termcap")
|
message("* Building with termcap")
|
||||||
else(EXISTS /etc/centos-release)
|
else(CENTOS)
|
||||||
SET(CENTOS 0)
|
message("* Building with readline")
|
||||||
ENDIF(EXISTS /etc/centos-release)
|
ENDIF(CENTOS)
|
||||||
|
|
||||||
FIND_ACE(ACE)
|
FIND_ACE(ACE)
|
||||||
if(ACE_FOUND)
|
if(ACE_FOUND)
|
||||||
|
|||||||
Reference in New Issue
Block a user