[CMake] Compiling cmake-3.10.2 against ncursesw

John Frankish john.frankish at outlook.com
Fri Mar 9 00:40:47 EST 2018


bump

-----Original Message-----
From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of John Frankish
Sent: Monday, 05 March 2018 15:45
To: cmake at cmake.org
Subject: [CMake] Compiling cmake-3.10.2 against ncursesw

Hi,

I've been trying to compile cmake-3.10.2 on a system that has only ncursesw using the ./bootstrap script.

I could not find a way to tell ./bootstrap to use ncursesw, so I added the following to Modules/FindCurses.cmake

set(CURSES_NEED_WIDE TRUE)

..this enables ./bootstrap to find libncursesw, but not libformw, so I also added:

set(CURSES_FORM_LIBRARY "/usr/local/lib/libformw.so")

..and ./bootstrap completes successfully.

However "make" fails when it cannot find form.h (even though it found /usr/local/include/ncursesw/ncurses.h).

After symlinking  /usr/local/include/ncursesw/form.h -> ../form.h, "make" completes successfully.

Is there any easy way to use ./bootstrap on an ncursesw system?

If Modules/FindCurses.cmake has the problems above when compiling cmake itself, won't it also have problems when compiling other stuff against ncursesw?

Regards
John

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list