ValveSoftware / voglperf

Benchmarking tool for Linux OpenGL games. Spews frame information, logs frametimes.
Other
201 stars 31 forks source link

Replace dependency on tinfo with ncurses #5

Closed Earnestly closed 10 years ago

Earnestly commented 10 years ago

libtinfo on many systems is just a symlink to ncurses.

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6deaba5..2e83a5f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -41,10 +41,7 @@ message("MAKE_LIBRARY_ARCHITECTURE is ${CMAKE_LIBRARY_ARCHITECTURE}")

 # add libedit lib
 include_directories(${CMAKE_SOURCE_DIR}/libedit-3.1/include)
-set(LIBEDIT_LIBS
-    "${CMAKE_SOURCE_DIR}/libedit-3.1/lib/${LIBDIR}/libedit.a"
-    tinfo
-    )
+set(LIBEDIT_LIBS "${CMAKE_SOURCE_DIR}/libedit-3.1/lib/${LIBDIR}/libedit.a" ncurses)

 set(SRC_LIST
     voglperfrun.cpp
mikesart commented 10 years ago

Sorry for the delay - just got back from vacation. On the current version of SteamOS, libncurses isn't multi-arch compatible: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689131 This makes it more painful to use at the moment than libtinfo.