Explorar el Código

cmake: fixed iconv detection test program

Fixes https://github.com/libsdl-org/SDL/issues/8614
Ozkan Sezer hace 2 años
padre
commit
bbcf40e811
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -1134,7 +1134,7 @@ if(SDL_LIBC)
         #include <stddef.h>
         #include <stddef.h>
         #include <iconv.h>
         #include <iconv.h>
         int main(int argc, char **argv) {
         int main(int argc, char **argv) {
-            return iconv_open(NULL,NULL);
+            return !iconv_open(NULL,NULL);
         }" ICONV_IN_LIBC)
         }" ICONV_IN_LIBC)
 
 
       cmake_push_check_state()
       cmake_push_check_state()
@@ -1143,7 +1143,7 @@ if(SDL_LIBC)
         #include <stddef.h>
         #include <stddef.h>
         #include <iconv.h>
         #include <iconv.h>
         int main(int argc, char **argv) {
         int main(int argc, char **argv) {
-            return iconv_open(NULL,NULL);
+            return !iconv_open(NULL,NULL);
         }" ICONV_IN_LIBICONV)
         }" ICONV_IN_LIBICONV)
       cmake_pop_check_state()
       cmake_pop_check_state()