CMake: Fixed NCurses Wide Character detection on Arch Linux default tip
authorSteffen Pankratz <kratz00@gmx.de>
Tue, 17 May 2016 21:45:52 +0200
changeset 888 1a9b3de01a8a
parent 887 6d2db3e8113d
CMake: Fixed NCurses Wide Character detection on Arch Linux
CMakeLists.txt
gui_ncurses.c
--- a/CMakeLists.txt	Thu May 26 19:26:48 2016 +0200
+++ b/CMakeLists.txt	Tue May 17 21:45:52 2016 +0200
@@ -462,6 +462,8 @@
             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)
--- a/gui_ncurses.c	Thu May 26 19:26:48 2016 +0200
+++ b/gui_ncurses.c	Tue May 17 21:45:52 2016 +0200
@@ -28,6 +28,8 @@
 #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