浏览代码

Don't probe libintl if it wasn't found

It just makes CMake error out rather than continue without NLS
support.
tags/v1.6.90
Pierre Ossman 8 年前
父节点
当前提交
210b4b5b24
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6
    4
      CMakeLists.txt

+ 6
- 4
CMakeLists.txt 查看文件

@@ -151,10 +151,12 @@ if(ENABLE_NLS)
set(GETTEXT_FOUND TRUE)
else()
find_library(LIBINTL_LIBRARY NAMES intl libintl)
check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
if(LIBINTL_HAS_DGETTEXT)
set(GETTEXT_LIBRARIES ${LIBINTL_LIBRARY} ${ICONV_LIBRARIES})
set(GETTEXT_FOUND TRUE)
if(LIBINTL_LIBRARY)
check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
if(LIBINTL_HAS_DGETTEXT)
set(GETTEXT_LIBRARIES ${LIBINTL_LIBRARY} ${ICONV_LIBRARIES})
set(GETTEXT_FOUND TRUE)
endif()
endif()
endif()
set(CMAKE_REQUIRED_LIBRARIES)

正在加载...
取消
保存