From cda7e1b1f38f165ebf5c7865e23ff0f272df2bce Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Mon, 24 Jul 2023 09:01:04 +0200 Subject: Try harder to find ncursesw --- CMakeLists.txt | 13 +++++++------ liberty | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ebf7842..0b50451 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,16 +13,17 @@ if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC) endif () # For custom modules -set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) +set (CMAKE_MODULE_PATH + "${PROJECT_SOURCE_DIR}/cmake;${PROJECT_SOURCE_DIR}/liberty/cmake") # Dependencies find_package (Curses) +find_package (Ncursesw) find_package (PkgConfig REQUIRED) # Note that cURL can link to a different version of libssl than we do, # in which case the results are undefined pkg_check_modules (dependencies REQUIRED libcurl jansson libssl libcrypto) find_package (LibEV REQUIRED) -pkg_check_modules (ncursesw ncursesw) set (project_libraries ${dependencies_LIBRARIES} ${LibEV_LIBRARIES}) include_directories (${dependencies_INCLUDE_DIRS} ${LibEV_INCLUDE_DIRS}) @@ -42,10 +43,10 @@ elseif (APPLE) add_definitions (-D_DARWIN_C_SOURCE) endif () -if (ncursesw_FOUND) - list (APPEND project_libraries ${ncursesw_LIBRARIES}) - include_directories (${ncursesw_INCLUDE_DIRS}) - link_directories (${ncursesw_LIBRARY_DIRS}) +if (Ncursesw_FOUND) + list (APPEND project_libraries ${Ncursesw_LIBRARIES}) + include_directories (${Ncursesw_INCLUDE_DIRS}) + link_directories (${Ncursesw_LIBRARY_DIRS}) elseif (CURSES_FOUND) list (APPEND project_libraries ${CURSES_LIBRARY}) include_directories (${CURSES_INCLUDE_DIR}) diff --git a/liberty b/liberty index 0e86ffe..7a0cb13 160000 --- a/liberty +++ b/liberty @@ -1 +1 @@ -Subproject commit 0e86ffe7c30a4d52eea35856b792567ca1040f56 +Subproject commit 7a0cb13a1a653f61b0e715f79156046898d0dd1b -- cgit v1.2.3-70-g09d2