cmake: ncurses: fix building with split tinfo

This fixes an issue where tinfo and ncurses are split into separate
libraries.
This commit is contained in:
Rick Farina (Zero_Chaos) 2022-02-15 21:27:51 -05:00 committed by Aaron Rossetto
parent 0db4d4124f
commit b170ec5d75
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ endforeach(example_source)
########################################################################
# ASCII Art DFT - requires curses, so this part is optional
########################################################################
set(CURSES_NEED_NCURSES 1)
find_package(Curses)
if(CURSES_FOUND)

View File

@ -5,6 +5,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
set(CURSES_NEED_NCURSES 1)
find_package(Curses)
if(CURSES_FOUND)