Skip to content

Commit

Permalink
[CMake] improve ncursesw detection on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Oct 7, 2024
1 parent e0e07bd commit 59c9774
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ endif(WITH_GTK)

# NCurses
if(WITH_NCURSES)
pkg_check_modules(NCURSES ncursesw)
# Assume ncurses from the base on FreeBSD
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if(NOT NCURSES_FOUND AND ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
set(NCURSES_FOUND 1)
set(NCURSES_LIBRARIES "-l:libncursesw.so")
else()
pkg_check_modules(NCURSES ncursesw)
endif()
if(NCURSES_FOUND)
include_directories(${NCURSES_INCLUDE_DIRS})
Expand Down

0 comments on commit 59c9774

Please sign in to comment.