From 3090fee4e0600db8958ef40bf2849e6e699e18c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Sat, 14 May 2011 07:41:05 +0000 Subject: [PATCH] cmake: cleanup, merge two patches git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38748 a592a061-630c-0410-9148-cb99ea01b6c8 --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19d1acb87b..e60af3221f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,11 +336,11 @@ if(LYX_NLS) endif() if(LYX_EXTERNAL_LIBINTL) - find_package(Libintl REQUIRED) - # find getext when configuring - list(APPEND CMAKE_REQUIRED_LIBRARIES ${LIBINTL_LIBRARIES}) - # on mac use iconv also form ports + find_package(Libintl REQUIRED) if(DEFINED LIBINTL_LIBRARIES) + # 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) endif() else() -- 2.39.2