Re: [pcre-dev] [Bug 698] ncurses library not added when link…

Página Principal
Apagar esta mensagem
Autor: Philip Hazel
Data:  
Para: 698
CC: pcre-dev
Assunto: Re: [pcre-dev] [Bug 698] ncurses library not added when linking pcretest
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

--
Philip Hazel