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
_______________________________________________
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

Reply via email to