mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
CMake: need terminfo include dirs for libnotcurse #195
This commit is contained in:
parent
8f41bfd757
commit
bc9a4344ae
@ -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.
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user