]> git.lyx.org Git - lyx.git/commitdiff
cmake: cleanup, merge two patches
authorPeter Kümmel <syntheticpp@gmx.net>
Sat, 14 May 2011 07:41:05 +0000 (07:41 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sat, 14 May 2011 07:41:05 +0000 (07:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38748 a592a061-630c-0410-9148-cb99ea01b6c8

CMakeLists.txt

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