From bc9a4344ae587b50412da70a9cdb0f606195b1c2 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 12 Jul 2021 17:43:07 -0500 Subject: [PATCH] CMake: need terminfo include dirs for libnotcurse #195 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac566339d..c5f83d3a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,6 @@ if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux") include_directories(/usr/local/include) link_directories(/usr/local/lib) set(CMAKE_REQUIRED_INCLUDES /usr/local/include) - message(FATAL ${CMAKE_REQUIRED_INCLUDES}) endif() # some distros (motherfucking alpine subsume terminfo directly # into ncurses. accept either, and may god have mercy on our souls. @@ -245,6 +244,7 @@ target_include_directories(notcurses src/lib "${CMAKE_REQUIRED_INCLUDES}" "${PROJECT_BINARY_DIR}/include" + "${TERMINFO_INCLUDE_DIRS}" ) target_include_directories(notcurses-static PRIVATE @@ -253,6 +253,7 @@ target_include_directories(notcurses-static src/lib "${CMAKE_REQUIRED_INCLUDES}" "${PROJECT_BINARY_DIR}/include" + "${TERMINFO_INCLUDE_DIRS}" ) target_link_libraries(notcurses PUBLIC