mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 23:40:54 +00:00
cmake: look for iconv in libc, too (bug #5316.)
This commit is contained in:
parent
6756851836
commit
2daa670ce8
1 changed files with 4 additions and 1 deletions
|
@ -841,7 +841,10 @@ if(LIBC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_library_exists(iconv iconv_open "" HAVE_LIBICONV)
|
check_library_exists(iconv iconv_open "" HAVE_LIBICONV)
|
||||||
if(HAVE_LIBICONV)
|
check_library_exists(c iconv_open "" HAVE_BUILTIN_ICONV)
|
||||||
|
if(HAVE_BUILTIN_ICONV)
|
||||||
|
set(HAVE_ICONV 1)
|
||||||
|
elseif(HAVE_LIBICONV)
|
||||||
list(APPEND EXTRA_LIBS iconv)
|
list(APPEND EXTRA_LIBS iconv)
|
||||||
set(HAVE_ICONV 1)
|
set(HAVE_ICONV 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue