]> git.lyx.org Git - features.git/commitdiff
cmake: LIBINTL_LIBRARIES could be empty
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 12 May 2011 21:55:24 +0000 (21:55 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 12 May 2011 21:55:24 +0000 (21:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38732 a592a061-630c-0410-9148-cb99ea01b6c8

CMakeLists.txt

index f7bc7b0c4bb27ec0dd8f7795400ffd55ae767336..19d1acb87b2b9b6a8ddf9a0f5dc0253105d02dba 100644 (file)
@@ -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")