build: pull iconv detection into its own FindIconv.cmake file

This will provide better control for those who may want to alter which
one gets used.
This commit is contained in:
John Szakmeister
2014-11-08 16:18:04 -05:00
parent 203a5166a0
commit 9344a40e74
4 changed files with 27 additions and 7 deletions

View File

@@ -158,8 +158,8 @@ else()
endif()
endif()
if(HAVE_ICONV_LIB)
list(APPEND NVIM_LINK_LIBRARIES iconv)
if(Iconv_LIBRARIES)
list(APPEND NVIM_LINK_LIBRARIES ${Iconv_LIBRARIES})
endif()
# Put these last on the link line, since multiple things may depend on them.