Skip to content

Commit

Permalink
CMake: need terminfo include dirs for libnotcurse #195
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jul 13, 2021
1 parent 8f41bfd commit bc9a434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<cough>motherfucking alpine</cough> subsume terminfo directly
# into ncurses. accept either, and may god have mercy on our souls.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bc9a434

Please sign in to comment.