Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CMake curses build #26741

Merged
merged 1 commit into from
Nov 18, 2018
Merged

Conversation

jbytheway
Copy link
Contributor

@jbytheway jbytheway commented Nov 17, 2018

Summary

SUMMARY: Build "Fixed CMake curses build"

Purpose of change

The CMake curses build did not work on my system, because it fails to link against tinfo.

Describe the solution

Update FindCurses.cmake. This includes a fix to add -ltinfo where necessary, which is required to
get the curses version to link on some systems.

I pulled this from the CMake 3.0.0 distribution, which entailed adding a bunch of other cmake files from the same place which are dependencies of the new FindCurses.

Here's where the relevant feature was added to CMake:
https://gitlab.kitware.com/cmake/cmake/commit/1f646c6ce0766f8ab59868e7cac24034e6966504

The new file depends on a bunch of other .cmake files from that release, so I had to include those also.

Because I took the file from CMake 3.0.0 I have updated the required version of CMake to that in case there are any features of that version being relied upon.

I had to make one small tweak to one file to avoid a CMake policy warning from running under CMake 3.10.

Additional context

This is a step towards being able to use CMake to generate compilation databases and thus use clang tooling.

I'm not a CMake expert and there's no CI for the CMake build, so I welcome any thoughts on potential problems this might cause.

This includes a fix to add -ltinfo where necessary, which is required to
get the curses version to link on my system.

I pulled this from the CMake 3.0.0 distribution, which entailed adding a
bunch of other cmake files from the same place which are dependencies of
the new FindCurses.
@kevingranade
Copy link
Member

Congrats, you own CMake builds now.

@kevingranade kevingranade merged commit d0da411 into CleverRaven:master Nov 18, 2018
@jbytheway jbytheway deleted the cmake_curses branch November 18, 2018 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants