Some cosmetic change in cmake files

--HG--
branch : trunk
This commit is contained in:
Kudlaty committed 2009-09-06 05:23:33 +02:00
1 parent b9208e371c
commit 8821a09832
2 files changed
+11 -16

No files matched your search

+10 -14
View File
@@ -128,12 +128,16 @@ else(SHORT_SLEEP)
message("* System sleep time is 100ms")
endif(SHORT_SLEEP)
IF(CENTOS)
add_definitions(-DCENTOS)
message("* Building with termcap")
else(CENTOS)
message("* Building with readline")
ENDIF(CENTOS)
IF(UNIX)
IF(CENTOS)
add_definitions(-DCENTOS)
MESSAGE("* Building with termcap")
FIND_TERMCAP()
ELSE(CENTOS)
MESSAGE("* Building with readline")
FIND_READLINE()
ENDIF(CENTOS)
ENDIF(UNIX)
FIND_ACE(ACE)
if(ACE_FOUND)
@@ -160,14 +164,6 @@ ELSE(EXISTS ${ACE_INCLUDE_DIR}/ace/Stack_Trace.h)
message(STATUS "** Your libace is out of date. Please update your libace!")
ENDIF(EXISTS ${ACE_INCLUDE_DIR}/ace/Stack_Trace.h)
IF(UNIX)
IF(CENTOS)
FIND_TERMCAP()
ELSE(CENTOS)
FIND_READLINE()
ENDIF(CENTOS)
ENDIF(UNIX)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
IF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
+1 -2
View File
@@ -16,8 +16,7 @@ IF (READLINE_INCLUDE_DIR AND READLINE_LIBRARY)
INCLUDE_DIRECTORIES(${READLINE_INCLUDE_DIR})
ELSE (READLINE_INCLUDE_DIR AND READLINE_LIBRARY)
SET(READLINE_FOUND FALSE)
MESSAGE(FATAL_ERROR "** Readline library not found!")
MESSAGE(FATAL_ERROR "** Your distro may provide a binary for Readline e.g. for ubuntu try apt-get install libreadline5-dev")
MESSAGE(FATAL_ERROR "** Readline library not found!\n** Your distro may provide a binary for Readline e.g. for ubuntu try apt-get install libreadline5-dev")
ENDIF (READLINE_INCLUDE_DIR AND READLINE_LIBRARY)
ENDMACRO(FIND_READLINE)