1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Defer searching for libintl to CMake

resolves #12800
This commit is contained in:
sfan5 2022-09-26 16:59:47 +02:00
parent af38bae57f
commit e8ee4cb40d
3 changed files with 26 additions and 50 deletions

View file

@ -292,16 +292,15 @@ else()
endif(HAVE_LIBRT)
endif(APPLE)
# Prefer local iconv if installed
find_library(ICONV_LIBRARY iconv)
mark_as_advanced(ICONV_LIBRARY)
if (ICONV_LIBRARY)
set(PLATFORM_LIBS ${PLATFORM_LIBS} ${ICONV_LIBRARY})
endif()
if (HAIKU)
set(PLATFORM_LIBS ${PLATFORM_LIBS} intl network)
endif()
if (HAIKU)
set(PLATFORM_LIBS ${PLATFORM_LIBS} network)
endif()
endif()
check_include_files(endian.h HAVE_ENDIAN_H)