mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
core: fix detection of iconv with cmake on OS X (bug #38321)
This commit is contained in:
@@ -7,6 +7,7 @@ v0.4.1-dev, 2013-02-12
|
||||
Version 0.4.1 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: fix detection of iconv with cmake on OS X (bug #38321)
|
||||
* core: add signal "window_opened" (task #12464)
|
||||
* core: fix structures before buffer data when a buffer is closed
|
||||
* core: fix refresh of line after changes with hdata_update (update flag
|
||||
|
||||
@@ -49,10 +49,11 @@ FIND_LIBRARY(ICONV_LIBRARY
|
||||
IF(ICONV_INCLUDE_PATH)
|
||||
IF(ICONV_LIBRARY)
|
||||
STRING(REGEX REPLACE "/[^/]*$" "" ICONV_LIB_PATH "${ICONV_LIBRARY}")
|
||||
CHECK_LIBRARY_EXISTS(iconv libiconv_open ${ICONV_LIB_PATH} ICONV_FOUND)
|
||||
IF(NOT ICONV_FOUND)
|
||||
CHECK_LIBRARY_EXISTS(iconv iconv_open ${ICONV_LIB_PATH} ICONV_FOUND)
|
||||
ENDIF(NOT ICONV_FOUND)
|
||||
CHECK_LIBRARY_EXISTS(iconv libiconv_open ${ICONV_LIB_PATH} LIBICONV_OPEN_FOUND)
|
||||
CHECK_LIBRARY_EXISTS(iconv iconv_open ${ICONV_LIB_PATH} ICONV_OPEN_FOUND)
|
||||
IF(LIBICONV_OPEN_FOUND OR ICONV_OPEN_FOUND)
|
||||
SET(ICONV_FOUND TRUE)
|
||||
ENDIF(LIBICONV_OPEN_FOUND OR ICONV_OPEN_FOUND)
|
||||
ELSE(ICONV_LIBRARY)
|
||||
CHECK_FUNCTION_EXISTS(iconv_open ICONV_FOUND)
|
||||
ENDIF(ICONV_LIBRARY)
|
||||
|
||||
Reference in New Issue
Block a user