From: Peter Kümmel Date: Thu, 12 May 2011 21:55:24 +0000 (+0000) Subject: cmake: LIBINTL_LIBRARIES could be empty X-Git-Tag: 2.1.0beta1~3264 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b3cffb0fc0d8229f34999de4bfcfcf989aaa8c9d;p=features.git cmake: LIBINTL_LIBRARIES could be empty git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38732 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f7bc7b0c4b..19d1acb87b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -340,7 +340,9 @@ if(LYX_EXTERNAL_LIBINTL) # find getext when configuring list(APPEND CMAKE_REQUIRED_LIBRARIES ${LIBINTL_LIBRARIES}) # on mac use iconv also form ports - get_filename_component(ICONV_RELATIVE_TO_LIBINTL ${LIBINTL_LIBRARIES} PATH) + if(DEFINED LIBINTL_LIBRARIES) + get_filename_component(ICONV_RELATIVE_TO_LIBINTL ${LIBINTL_LIBRARIES} PATH) + endif() else() if(LYX_NLS) add_subdirectory(intl "${TOP_BINARY_DIR}/intl")