diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-11-30 00:36:41 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-11-30 00:37:17 +0100 |
commit | af193ef483ff94d90c8ced43294a5dee28630a5b (patch) | |
tree | ce60db93b012bc53387dbfc6f7c91c565fcb563f | |
parent | e8b9c654af3aa0e5c1afd2dc79daa70149b7f242 (diff) | |
download | termo-af193ef483ff94d90c8ced43294a5dee28630a5b.tar.gz termo-af193ef483ff94d90c8ced43294a5dee28630a5b.tar.xz termo-af193ef483ff94d90c8ced43294a5dee28630a5b.zip |
Go with ncursesw if found
It'd be better if the user could choose the exact library, however this
change is actually necessary to support compilation on systems with
only the wide version's headers installed (hello Debian).
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c68e5b5..7bac446 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ set (project_CMAKE_NAME "Termo") find_package (Curses) find_package (PkgConfig REQUIRED) pkg_check_modules (glib glib-2.0 gio-2.0) +pkg_check_modules (ncursesw ncursesw) pkg_check_modules (unibilium unibilium>=0.1.0) # Header files with configuration @@ -48,6 +49,9 @@ if (unibilium_FOUND) include_directories (${unibilium_INCLUDE_DIRS}) set (lib_libraries ${unibilium_LIBRARIES}) add_definitions (-DHAVE_UNIBILIUM) +elseif (ncursesw_FOUND) + include_directories (${ncursesw_INCLUDE_DIRS}) + set (lib_libraries ${ncursesw_LIBRARIES}) elseif (CURSES_FOUND) include_directories (${CURSES_INCLUDE_DIR}) set (lib_libraries ${CURSES_LIBRARY}) |