diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 05:03:06 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 05:03:06 +0000 |
commit | 4ffc4372dff6595a86120ec0bd311c4cb5fb8ed6 (patch) | |
tree | 582224c3f88627b5797d1b57ccaf158c7d36118e /cmake/FindIconv.cmake | |
parent | Releasing progress-linux version 1.7.2+ds-1~progress7.99u1. (diff) | |
download | libgit2-4ffc4372dff6595a86120ec0bd311c4cb5fb8ed6.tar.xz libgit2-4ffc4372dff6595a86120ec0bd311c4cb5fb8ed6.zip |
Merging upstream version 1.8.1+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'cmake/FindIconv.cmake')
-rw-r--r-- | cmake/FindIconv.cmake | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/cmake/FindIconv.cmake b/cmake/FindIconv.cmake deleted file mode 100644 index 9e6ded9..0000000 --- a/cmake/FindIconv.cmake +++ /dev/null @@ -1,45 +0,0 @@ -# - Try to find Iconv -# Once done this will define -# -# ICONV_FOUND - system has Iconv -# ICONV_INCLUDE_DIR - the Iconv include directory -# ICONV_LIBRARIES - Link these to use Iconv -# - -if(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES) - # Already in cache, be silent - set(ICONV_FIND_QUIETLY TRUE) -endif() - -find_path(ICONV_INCLUDE_DIR iconv.h) -check_function_exists(iconv_open libc_has_iconv) -find_library(iconv_lib NAMES iconv libiconv libiconv-2 c) - -if(ICONV_INCLUDE_DIR AND libc_has_iconv) - set(ICONV_FOUND TRUE) - set(ICONV_LIBRARIES "") - if(NOT ICONV_FIND_QUIETLY) - message(STATUS "Found Iconv: provided by libc") - endif(NOT ICONV_FIND_QUIETLY) -elseif(ICONV_INCLUDE_DIR AND iconv_lib) - set(ICONV_FOUND TRUE) - # split iconv into -L and -l linker options, so we can - # set them for pkg-config - get_filename_component(iconv_path ${iconv_lib} PATH) - get_filename_component(iconv_name ${iconv_lib} NAME_WE) - string(REGEX REPLACE "^lib" "" iconv_name ${iconv_name}) - set(ICONV_LIBRARIES "-L${iconv_path} -l${iconv_name}") - - if(NOT ICONV_FIND_QUIETLY) - message(STATUS "Found Iconv: ${ICONV_LIBRARIES}") - endif() -else() - if(Iconv_FIND_REQUIRED) - message(FATAL_ERROR "Could not find Iconv") - endif(Iconv_FIND_REQUIRED) -endif() - -mark_as_advanced( - ICONV_INCLUDE_DIR - ICONV_LIBRARIES -) |