2023-01-10 10:49:57 -07:00
|
|
|
# TODO(dundargoc): FindIconv is shipped by default on cmake version 3.11+. This
|
|
|
|
# file can be removed once we decide to upgrade minimum cmake version.
|
|
|
|
|
2014-11-08 14:18:04 -07:00
|
|
|
# - Try to find iconv
|
|
|
|
# Once done, this will define
|
|
|
|
#
|
|
|
|
# Iconv_FOUND - system has iconv
|
|
|
|
# Iconv_INCLUDE_DIRS - the iconv include directories
|
|
|
|
# Iconv_LIBRARIES - link these to use iconv
|
|
|
|
|
|
|
|
include(LibFindMacros)
|
|
|
|
|
|
|
|
find_path(ICONV_INCLUDE_DIR NAMES iconv.h)
|
2018-06-06 18:39:17 -07:00
|
|
|
find_library(ICONV_LIBRARY NAMES iconv libiconv)
|
2014-11-08 14:18:04 -07:00
|
|
|
|
|
|
|
set(Iconv_PROCESS_INCLUDES ICONV_INCLUDE_DIR)
|
|
|
|
if(ICONV_LIBRARY)
|
|
|
|
set(Iconv_PROCESS_LIBS ICONV_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
libfind_process(Iconv)
|
2023-02-10 12:20:18 -07:00
|
|
|
|
|
|
|
mark_as_advanced(ICONV_LIBRARY)
|