cmake: check if iconv is part of libc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18082 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2007-04-29 10:23:22 +00:00
parent b0b7aa2bf5
commit 49b4047bde

View File

@ -66,14 +66,21 @@ if(WIN32)
MESSAGE(FATAL_ERROR "exit cmake")
ENDIF(NOT ICONV_DLL AND ICONV_DLL_HELP)
ENDIF(ICONV_FIND_REQUIRED)
IF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY AND ICONV_DLL)
SET(ICONV_FOUND TRUE)
ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY AND ICONV_DLL)
ELSE(WIN32)
set(ICONV_DLL TRUE)
check_function_exists(iconv HAVE_ICONV_IN_LIBC)
IF (ICONV_INCLUDE_DIR AND HAVE_ICONV_IN_LIBC)
SET(ICONV_FOUND TRUE)
SET(ICONV_LIBRARY CACHE TYPE STRING FORCE)
ENDIF (ICONV_INCLUDE_DIR AND HAVE_ICONV_IN_LIBC)
IF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY)
SET(ICONV_FOUND TRUE)
ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY)
endif(WIN32)
IF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY AND ICONV_DLL)
SET(ICONV_FOUND TRUE)
ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY AND ICONV_DLL)
IF (ICONV_FOUND)
IF (NOT ICONV_FIND_QUIETLY)