Skip to content

Commit

Permalink
CMake: Fixed NCurses Wide Character detection on Arch Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kratz00 committed May 17, 2016
1 parent 38173e9 commit 068d2b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -462,6 +462,8 @@ IF(CURSES_FOUND)
ADD_DEFINITIONS(-DHAVE_NCURSESW_CURSES_H)
ELSEIF(CURSES_HAVE_NCURSESW_H)
ADD_DEFINITIONS(-DHAVE_NCURSESW_H)
ELSEIF(CURSES_HAVE_CURSES_H)
ADD_DEFINITIONS(-DHAVE_CURSES_H)
ENDIF(CURSES_HAVE_NCURSESW_NCURSES_H)

OPTION(MOJOSETUP_GUI_NCURSES_STATIC "Statically link ncurses GUI" FALSE)
Expand Down
2 changes: 2 additions & 0 deletions gui_ncurses.c
Expand Up @@ -28,6 +28,8 @@ CREATE_MOJOGUI_ENTRY_POINT(ncurses)
#include <ncursesw/curses.h>
#elif defined(HAVE_NCURSESW_H)
#include <ncursesw.h>
#elif defined(HAVE_CURSES_H)
#include <curses.h>
#else
#error ncurses gui enabled, but no known header file found
#endif
Expand Down

0 comments on commit 068d2b8

Please sign in to comment.