mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
Fix linking with cmake and included iconv
Previously, the GNU linker would complain about missing libcharset_relocate. The MSVC linker did not complain, since the code that uses libcharset_relocate does not seem to be sued, so it removed it.
This commit is contained in:
parent
325fbab463
commit
c7bfa7d341
2
3rdparty/libiconv/CMakeLists.txt
vendored
2
3rdparty/libiconv/CMakeLists.txt
vendored
@ -45,7 +45,7 @@ add_definitions(-Dset_relocation_prefix=libcharset_set_relocation_prefix -Dreloc
|
||||
set(SRC_LIBCHARSET ${SRCDIR}/libcharset/lib/localcharset.c)
|
||||
|
||||
# libiconv
|
||||
set(SRC_LIBICONV ${SRCDIR}/lib/iconv.c)
|
||||
set(SRC_LIBICONV ${SRCDIR}/lib/iconv.c ${SRCDIR}/lib/relocatable.c)
|
||||
|
||||
add_library(iconv ${SRC_LIBICONV} ${SRC_LIBCHARSET})
|
||||
set_target_properties(iconv PROPERTIES COMPILE_FLAGS -DBUILDING_LIBICONV)
|
||||
|
Loading…
Reference in New Issue
Block a user