mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
fix iconv check
This commit is contained in:
parent
bad7050096
commit
457e922cca
@ -59,10 +59,10 @@ if (WIN32)
|
||||
add_definitions(-D_WIN32_WINNT=0x0501)
|
||||
set(SYSTEM_LIBS ${SYSTEM_LIBS} ole32 oleaut32 ws2_32 mswsock)
|
||||
|
||||
#check for iconv (may be needed for boost.locale)
|
||||
include(CheckLibraryExists)
|
||||
check_library_exists(iconv libiconv_open "" ICONV_LIB_FOUND)
|
||||
check_library_exists(iconv iconv_open "" ICONV_FOUND)
|
||||
if(ICONV_LIB_FOUND OR ICONV_FOUND)
|
||||
check_library_exists(iconv libiconv_open "" ICONV_FOUND)
|
||||
if(ICONV_FOUND)
|
||||
set(SYSTEM_LIBS ${SYSTEM_LIBS} iconv)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user