Ensure that iconv and zlib are always found

If the included thirdparty libs are requested, use them, even on unix. This is
consistent with autotools (but the recommended way is of course to use the
system libs). If the included thirdparty libs are not requested then try to find
libiconv and zlib also on windows. This will lead to an error unless the libs are
found via manually added include and link paths, but this is wanted since
libiconv and zlib are not optional.
This commit is contained in:
Georg Baum 2016-07-02 11:09:26 +02:00
parent 0147e1f857
commit 5ef180842c

View File

@ -706,15 +706,13 @@ if(LYX_NLS)
endif()
endif()
if(UNIX)
find_package(ICONV REQUIRED)
find_package(ZLIB REQUIRED)
else()
if(LYX_3RDPARTY_BUILD)
if(LYX_3RDPARTY_BUILD)
add_subdirectory(3rdparty/libiconv)
set(HAVE_ICONV_CONST 1)
add_subdirectory(3rdparty/zlib)
endif()
else()
find_package(ICONV REQUIRED)
find_package(ZLIB REQUIRED)
endif()
if(LYX_EXTERNAL_BOOST)