aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-24 09:01:04 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-24 09:01:54 +0200
commitcda7e1b1f38f165ebf5c7865e23ff0f272df2bce (patch)
tree5afd745865704992e5bc0f19f988bf4021bcb0f8
parent14c6d285fc9f37de41ce81bae57b7731acddad3b (diff)
downloadjson-rpc-shell-cda7e1b1f38f165ebf5c7865e23ff0f272df2bce.tar.gz
json-rpc-shell-cda7e1b1f38f165ebf5c7865e23ff0f272df2bce.tar.xz
json-rpc-shell-cda7e1b1f38f165ebf5c7865e23ff0f272df2bce.zip
Try harder to find ncursesw
-rw-r--r--CMakeLists.txt13
m---------liberty0
2 files changed, 7 insertions, 6 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
-Subproject 0e86ffe7c30a4d52eea35856b792567ca1040f5
+Subproject 7a0cb13a1a653f61b0e715f79156046898d0dd1