diff options
| author | Chaz Brown <iamparadox@netscape.net> | 2009-09-05 13:17:28 -0400 |
|---|---|---|
| committer | Chaz Brown <iamparadox@netscape.net> | 2009-09-05 13:17:28 -0400 |
| commit | 558433557fa85041b90b1c0dcdffa844f7b3483e (patch) | |
| tree | 9f47553cdb49af4324906d384f60afc0ca3c3a22 | |
| parent | 0b605fcb88d5922191434ff300db30bb68869230 (diff) | |
Add back -DCENTOS switch for cmake, since the previous solution wasn't working for everyone.
--HG--
branch : trunk
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index facb6e377c2..f5a9312dae4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,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 "CENTOS" 0) SET(GENREV_SRC src/tools/genrevision/genrevision.cpp @@ -126,12 +127,12 @@ else(SHORT_SLEEP) message("* System sleep time is 100ms") endif(SHORT_SLEEP) -IF(EXISTS /etc/centos-release) - SET(CENTOS 1) +IF(CENTOS) +add_definitions(-DCENTOS) message("* Building with termcap") -else(EXISTS /etc/centos-release) - SET(CENTOS 0) -ENDIF(EXISTS /etc/centos-release) +else(CENTOS) + message("* Building with readline") +ENDIF(CENTOS) FIND_ACE(ACE) if(ACE_FOUND) |
