comparison Resources/CMake/LibIconvConfiguration.cmake @ 2371:8ab3310dd4f7

fix openbsd build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Aug 2017 23:33:21 +0200
parents 2aff870c2c58
children 741bb76634d3
comparison
equal deleted inserted replaced
2369:61371420f383 2371:8ab3310dd4f7
77 if (NOT HAVE_ICONV_H) 77 if (NOT HAVE_ICONV_H)
78 message(FATAL_ERROR "Please install the libiconv-dev package") 78 message(FATAL_ERROR "Please install the libiconv-dev package")
79 endif() 79 endif()
80 80
81 # Check whether the support for libiconv is bundled within the 81 # Check whether the support for libiconv is bundled within the
82 # standard library 82 # standard C library
83 CHECK_FUNCTION_EXISTS(iconv_open HAVE_ICONV_LIB) 83 CHECK_FUNCTION_EXISTS(iconv_open HAVE_ICONV_LIB)
84 if (NOT HAVE_ICONV_LIB) 84 if (NOT HAVE_ICONV_LIB)
85 # No builtin support for libiconv, try and find an external library. 85 # No builtin support for libiconv, try and find an external library.
86 # Open question: Does this make sense on any platform? 86 # Open question: Does this make sense on any platform?
87 CHECK_LIBRARY_EXISTS(iconv iconv_open "" HAVE_ICONV_LIB_2) 87 CHECK_LIBRARY_EXISTS(iconv iconv_open "" HAVE_ICONV_LIB_2)