[cmake-developers] ncurses sub-dir and include path

Christoph Grüninger foss at grueninger.de
Thu Aug 1 18:35:09 EDT 2019


Hi Brad,
thanks for keeping answering my emails!

>> I always end up with /usr/include/ being the CURSES_INCLUDE_PATH.
> 
> Why is that wrong?  As you said it has both `ncurses.h` and `curses.h`.
> Even though they are symlinks one can still use them to compile.

CMake includes form.h, not (n)curses.h. So form.h is later not found,
because after finding (n)curses.h in /usr/include the search is over.

> To ignore the symlinks one could configure with
> 
>   -DCURSES_INCLUDE_PATH=/usr/include/ncurses
> 
> to tell FindCurses to skip searching and just use that.  Once it has
> that directory the computation of the other values may work.

While this is true, my expectation are that CMake as the build tool of
my choice should be able to figure out its own dependencies without the
user to explicitly setting an include path.

I opened !3638 to get my issue fixed. We can continue discussion the
issue there.

Kind regards,
Christoph

-- 
Nous vivons une époque où les pizzas arrivent plus vite que la police.
[Claude Chabrol]


More information about the cmake-developers mailing list