Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 1 | From 131b88a81aba3d72d566bc8a9d968941a98e0007 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 3 | Date: Sun, 31 Mar 2019 18:11:55 +0200 |
| 4 | Subject: [PATCH] CMakeLists.txt: Remove TRY_RUN for iconv |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | | CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately: |
| 10 | | _correct_iconv_EXITCODE (advanced) |
| 11 | |
| 12 | Upstream-Status: Inappropriate [OE specific] |
| 13 | |
| 14 | Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com> |
| 15 | --- |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 16 | CMakeLists.txt | 11 ----------- |
| 17 | 1 file changed, 11 deletions(-) |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | |
| 19 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 20 | index 1672daf..0b3e4e0 100644 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 21 | --- a/CMakeLists.txt |
| 22 | +++ b/CMakeLists.txt |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 23 | @@ -524,17 +524,6 @@ if(NOT HAVE_ICONV) |
| 24 | message(FATAL_ERROR "You need to install a working iconv implementation, such as ftp://ftp.gnu.org/pub/gnu/libiconv") |
| 25 | endif(NOT HAVE_ICONV) |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 26 | |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 27 | -set(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBS}) |
| 28 | -file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/" _binary_dir_with_separator) |
Brad Bishop | 0f291cc | 2019-09-01 15:16:57 -0400 | [diff] [blame] | 29 | -CHECK_C_SOURCE_RUNS("#define ICONV_DETECT_BUILD_DIR \"${_binary_dir_with_separator}\" |
| 30 | - #include \"${CMAKE_SOURCE_DIR}/iconv-detect.c\"" _correct_iconv) |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 31 | -unset(_binary_dir_with_separator) |
| 32 | -unset(CMAKE_REQUIRED_LIBRARIES) |
| 33 | - |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 34 | -if(NOT _correct_iconv) |
| 35 | - message(FATAL_ERROR "You need to install a working iconv implementation, such as ftp://ftp.gnu.org/pub/gnu/libiconv") |
| 36 | -endif(NOT _correct_iconv) |
| 37 | - |
| 38 | # ****************************** |
| 39 | # Backtraces for debugging |
| 40 | # ****************************** |
| 41 | -- |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 42 | 2.20.1 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 43 | |