minor cmake fix: ncurses header as system includes

This commit is contained in:
Christian Burger 2022-04-18 11:43:26 +01:00
parent 0a916fe01a
commit 45beee33a8

View file

@ -1,10 +1,9 @@
# @author Christian Burger <christian@krikkel.de> # @author Christian Burger <christian@krikkel.de>
### ncurses
set(CURSES_NEED_NCURSES TRUE) set(CURSES_NEED_NCURSES TRUE)
set(CURSES_NEED_WIDE TRUE) set(CURSES_NEED_WIDE TRUE)
find_package(Curses 6.2 REQUIRED) find_package(Curses 6.2 REQUIRED)
include_directories(${CURSES_INCLUDE_DIRS}) include_directories(SYSTEM ${CURSES_INCLUDE_DIRS})
# find C++ interface for ncurses with unicode support # find C++ interface for ncurses with unicode support
find_library(CURSES_CPP_WIDE_LIBRARY NAMES ncurses++w REQUIRED) find_library(CURSES_CPP_WIDE_LIBRARY NAMES ncurses++w REQUIRED)