doxygen: Fix libiconv checks (#14106)
PR #10589 introduced a libiconv dependency to doxygen. This causes problems on Linux systems, since the iconv symbols are included in libc, which causes CMake to use the external header but not the external library. Work around this by always using the external libiconv.
This commit is contained in:
parent
f2979da2af
commit
927f496306
@ -43,3 +43,13 @@ class Doxygen(CMakePackage):
|
||||
# https://github.com/Sleepyowl/doxygen/commit/6c380ba91ae41c6d5c409a5163119318932ae2a3?diff=unified
|
||||
# Also - https://github.com/doxygen/doxygen/pull/6588
|
||||
patch('shared_ptr.patch', when='@1.8.14')
|
||||
|
||||
def patch(self):
|
||||
# On Linux systems, iconv is provided by libc. Since CMake finds the
|
||||
# symbol in libc, it does not look for libiconv, which leads to linker
|
||||
# errors. This makes sure that CMake always looks for the external
|
||||
# libconv instead.
|
||||
filter_file('check_function_exists(iconv_open ICONV_IN_GLIBC)',
|
||||
'set(ICONV_IN_GLIBC FALSE)',
|
||||
join_path('cmake', 'FindIconv.cmake'),
|
||||
string=True)
|
||||
|
Loading…
Reference in New Issue
Block a user