[pcre-dev] [Bug 698] ncurses library not added when linking …

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 698] ncurses library not added when linking pcretest
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=698




--- Comment #3 from Philip Hazel <ph10@???> 2008-04-22 09:26:54 ---
On Tue, 22 Apr 2008, Daniel Bergström wrote:

> The issue that I am trying to address is about the inconsistency on how
> the options given to CMake is handled.


I have to believe you :-) because, as I say, I'm pretty ignorant about
CMake.

> My new suggestion is to use the give patch
> but to remove the automatic search for the NCURSES_LIBRARY in the
> cmake/FindReadline.cmake:14:
>
>       FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses )

>
> And modify the line 17 to:
>
>       FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG
> READLINE_INCLUDE_DIR READLINE_LIBRARY )

>
> This would allow one to specify a curses/termcap library when needed and
> the automatic search would not add ncurses if found.


That sounds as though it is is suitably flexible. Thanks for the
research.

I am happy to put those patches on, unless anybody on the list shouts
(soon) to tell me not to. I'll do this shortly, and post when I've
committed the modified files. I am about to start pulling together a 7.7
release.

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email