From 5c02778ff8ebbfa3404f96561d94ce852be8648e Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Mon, 6 Jan 2025 10:14:49 +0100 Subject: wdye: improve portability --- tools/wdye/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/wdye/CMakeLists.txt') diff --git a/tools/wdye/CMakeLists.txt b/tools/wdye/CMakeLists.txt index 9044078..a69f7ee 100644 --- a/tools/wdye/CMakeLists.txt +++ b/tools/wdye/CMakeLists.txt @@ -19,7 +19,10 @@ pkg_search_module (lua REQUIRED option (WITH_CURSES "Offer terminal sequences using Curses" "${CURSES_FOUND}") -include_directories ("${PROJECT_BINARY_DIR}") +# -liconv may or may not be a part of libc +find_path (iconv_INCLUDE_DIRS iconv.h) + +include_directories ("${PROJECT_BINARY_DIR}" ${iconv_INCLUDE_DIRS}) file (CONFIGURE OUTPUT "${PROJECT_BINARY_DIR}/config.h" CONTENT [[ #define PROGRAM_NAME "${PROJECT_NAME}" #define PROGRAM_VERSION "${PROJECT_VERSION}" -- cgit v1.2.3-70-g09d2