summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Louis <ptitlouis@sysif.net>2007-06-11 19:24:02 +0000
committerJulien Louis <ptitlouis@sysif.net>2007-06-11 19:24:02 +0000
commit83db899ce7ee02e1b264d64fb612185894860081 (patch)
treea9ffdaab70bfa44d83aad6ad81921b0d0e3f43c2
parent894cda91c9f074544d880cba2cc3a16ff506ac78 (diff)
downloadweechat-83db899ce7ee02e1b264d64fb612185894860081.zip
re-introduce ELSEIF check since it breaks libintl check on other plateforms.
-rw-r--r--cmake/FindGettext.cmake2
-rw-r--r--weechat/cmake/FindGettext.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/FindGettext.cmake b/cmake/FindGettext.cmake
index 1777638e6..3db79cf7e 100644
--- a/cmake/FindGettext.cmake
+++ b/cmake/FindGettext.cmake
@@ -46,7 +46,7 @@ IF(HAVE_LIBINTL_H)
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
SET(CMAKE_REQUIRED_LIBRARIES "iconv")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "libintl_dgettext" "" LIBINTL_HAS_DGETTEXT)
- ELSE(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
diff --git a/weechat/cmake/FindGettext.cmake b/weechat/cmake/FindGettext.cmake
index 1777638e6..3db79cf7e 100644
--- a/weechat/cmake/FindGettext.cmake
+++ b/weechat/cmake/FindGettext.cmake
@@ -46,7 +46,7 @@ IF(HAVE_LIBINTL_H)
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
SET(CMAKE_REQUIRED_LIBRARIES "iconv")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "libintl_dgettext" "" LIBINTL_HAS_DGETTEXT)
- ELSE(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")