From b170ec5d755b955196902d687e1614cb2ea46803 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 15 Feb 2022 21:27:51 -0500 Subject: cmake: ncurses: fix building with split tinfo This fixes an issue where tinfo and ncurses are split into separate libraries. --- host/examples/CMakeLists.txt | 1 + host/utils/latency/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/host/examples/CMakeLists.txt b/host/examples/CMakeLists.txt index 856b867e5..69e84f95d 100644 --- a/host/examples/CMakeLists.txt +++ b/host/examples/CMakeLists.txt @@ -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) diff --git a/host/utils/latency/CMakeLists.txt b/host/utils/latency/CMakeLists.txt index 48a3635a7..e4cd4d171 100644 --- a/host/utils/latency/CMakeLists.txt +++ b/host/utils/latency/CMakeLists.txt @@ -5,6 +5,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later # +set(CURSES_NEED_NCURSES 1) find_package(Curses) if(CURSES_FOUND) -- cgit v1.2.3