On 14/06/2011 17:22, David Demelier wrote:
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,
In fact I need to link against ncursesw that lives in
/usr/local/lib/libncursesw.so.
I saw this message http://www.mail-archive.com/cmake@cmake.org/msg27411.html
About using wide detection with CURSES_NEED_WIDE optional argument. I
think it would be great to include this into the FindCurses.cmake file :)
Cheers,
--
David Demelier
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake