[CMake] FindCurses.cmake does not find libncurses.so
David Demelier
demelier.david at gmail.com
Tue Jun 14 11:22:57 EDT 2011
Hello,
On FreeBSD the status of ncurses is particularly annoying. We have a old
curses lib under /usr/lib/libcurses.so that does not provide ncurses
functionalities.
I tried the following CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(cmaketest)
set(srcs "main.c")
set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)
message(${CURSES_LIBRARY})
add_executable(test ${srcs})
But it does not find my /usr/local/lib/libncurses.so (this one is what I
want) it only stuck with /usr/lib/libcurses.so
I of course can link directly to it, but I don't like this way.
Cheers,
--
David Demelier
More information about the CMake
mailing list