From b3cffb0fc0d8229f34999de4bfcfcf989aaa8c9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Thu, 12 May 2011 21:55:24 +0000 Subject: [PATCH] cmake: LIBINTL_LIBRARIES could be empty git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38732 a592a061-630c-0410-9148-cb99ea01b6c8 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") -- 2.39.2