mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 07:30:23 +02:00
Fix *BSD build with GNU iconv
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user