Skip to content
Snippets Groups Projects
Commit 63bab3f2 authored by Stephen Hurd's avatar Stephen Hurd
Browse files

More hacakge for BSD

parent b5d7f5ec
No related branches found
No related tags found
No related merge requests found
...@@ -109,14 +109,18 @@ if(NOT WIN32) ...@@ -109,14 +109,18 @@ if(NOT WIN32)
endif() endif()
if(USE_CURSES_ANYWAY) if(USE_CURSES_ANYWAY)
if(CURSES_FOUND)
if (CURSES_HAVE_NCURSES_NCURSES_H) if (CURSES_HAVE_NCURSES_NCURSES_H)
target_compile_definitions(ciolib PRIVATE DEBIAN_HATES_YOU) target_compile_definitions(ciolib PRIVATE DEBIAN_HATES_YOU)
elseif(CURSES_HAVE_NCURSES_H) elseif(CURSES_HAVE_NCURSES_H)
target_compile_definitions(ciolib PRIVATE N_CURSES_LIB) target_compile_definitions(ciolib PRIVATE N_CURSES_LIB)
endif() endif()
target_link_libraries(ciolib ${NCURSES_LIBRARIES})
else()
target_link_libraries(ciolib ${CURSES_NCURSES_LIBRARY}) target_link_libraries(ciolib ${CURSES_NCURSES_LIBRARY})
target_link_libraries(ciolib ${CURSES_TINFO_LIBRARY_NAME}) target_link_libraries(ciolib ${CURSES_TINFO_LIBRARY_NAME})
endif() endif()
endif()
CHECK_FUNCTION_EXISTS(vasprintf HAVE_VASPRINTF) CHECK_FUNCTION_EXISTS(vasprintf HAVE_VASPRINTF)
if(HAVE_VASPRINTF) if(HAVE_VASPRINTF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment