mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 09:15:08 +00:00
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
|
|
Date: Tue, 20 Apr 2021 18:42:04 +0300
|
|
Subject: [PATCH] Use manual include & library paths for ncurses
|
|
|
|
Co-Authored-By: Panagiotis Vasilopoulos <hello@alwayslivid.com>
|
|
---
|
|
CMakeLists.txt | 9 +++++----
|
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 6c50d7b..6ce5f9f 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -5,6 +5,9 @@ cmake_minimum_required(VERSION 2.8)
|
|
project(CMatrix LANGUAGES C)
|
|
set(VERSION "2.0")
|
|
|
|
+set(CMAKE_INCLUDE_PATH "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses")
|
|
+set(CURSES_NCURSES_LIBRARY "${SERENITY_INSTALL_ROOT}/usr/local/lib/libncurses.a")
|
|
+
|
|
# These are relative to CMAKE_INSTALL_PREFIX
|
|
# which by default is "/usr/local"
|
|
set(CONSOLE_FONTS_DIRS "share/consolefonts" "lib/kbd/consolefonts")
|
|
@@ -49,10 +52,8 @@ if (HAVE_GETOPT_H)
|
|
add_definitions(-DHAVE_GETOPT_H)
|
|
endif ()
|
|
|
|
-Set(CURSES_NEED_NCURSES TRUE)
|
|
-find_package(Curses)
|
|
-include_directories(${CURSES_INCLUDE_DIR})
|
|
-add_definitions(-DHAVE_NCURSES_H)
|
|
+find_package(Curses REQUIRED)
|
|
+include_directories(${CURSES_INCLUDE_PATH})
|
|
|
|
add_executable(cmatrix cmatrix.c)
|
|
|