mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Fix *BSD build with GNU iconv
This commit is contained in:
parent
0d65ee878c
commit
4e28c8d3c8
2 changed files with 36 additions and 14 deletions
|
@ -249,11 +249,18 @@ else()
|
|||
else()
|
||||
set(PLATFORM_LIBS -lrt ${PLATFORM_LIBS})
|
||||
endif(APPLE)
|
||||
#set(CLIENT_PLATFORM_LIBS -lXxf86vm)
|
||||
|
||||
# This way Xxf86vm is found on OpenBSD too
|
||||
find_library(XXF86VM_LIBRARY Xxf86vm)
|
||||
mark_as_advanced(XXF86VM_LIBRARY)
|
||||
set(CLIENT_PLATFORM_LIBS ${CLIENT_PLATFORM_LIBS} ${XXF86VM_LIBRARY})
|
||||
|
||||
# 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()
|
||||
endif()
|
||||
|
||||
check_include_files(endian.h HAVE_ENDIAN_H)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue