Skip to content

Commit

Permalink
try remove libncurses5
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Apr 1, 2020
1 parent 750ee9e commit 794a44e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cmake/Thirdparty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ ENDIF(UNIX)
if (TARS_MYSQL)
add_definitions(-DTARS_MYSQL=1)

IF(UNIX AND NOT APPLE)
FIND_PACKAGE(Curses)
IF(NOT CURSES_FOUND)
SET(ERRORMSG "Curses library not found. Please install appropriate package,
remove CMakeCache.txt and rerun cmake.")
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
SET(ERRORMSG ${ERRORMSG}
"On Debian/Ubuntu, package name is libncurses5-dev(apt-get install libncurses5-dev), on Redhat/Centos and derivates "
"it is ncurses-devel (yum install ncurses-devel).")
ENDIF()
MESSAGE(FATAL_ERROR ${ERRORMSG})
ENDIF()
ENDIF()
# IF(UNIX AND NOT APPLE)
# FIND_PACKAGE(Curses)
# IF(NOT CURSES_FOUND)
# SET(ERRORMSG "Curses library not found. Please install appropriate package,
# remove CMakeCache.txt and rerun cmake.")
# IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
# SET(ERRORMSG ${ERRORMSG}
# "On Debian/Ubuntu, package name is libncurses5-dev(apt-get install libncurses5-dev), on Redhat/Centos and derivates "
# "it is ncurses-devel (yum install ncurses-devel).")
# ENDIF()
# MESSAGE(FATAL_ERROR ${ERRORMSG})
# ENDIF()
# ENDIF()

endif ()

Expand Down

0 comments on commit 794a44e

Please sign in to comment.