From bbcf40e811785400df741023c4437762dc9ea4b0 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 26 Nov 2023 01:55:24 +0300 Subject: [PATCH] cmake: fixed iconv detection test program Fixes https://github.com/libsdl-org/SDL/issues/8614 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 149004866..adec587c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1134,7 +1134,7 @@ if(SDL_LIBC) #include #include int main(int argc, char **argv) { - return iconv_open(NULL,NULL); + return !iconv_open(NULL,NULL); }" ICONV_IN_LIBC) cmake_push_check_state() @@ -1143,7 +1143,7 @@ if(SDL_LIBC) #include #include int main(int argc, char **argv) { - return iconv_open(NULL,NULL); + return !iconv_open(NULL,NULL); }" ICONV_IN_LIBICONV) cmake_pop_check_state()