cmake on mac: build with internal libintl, cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38730 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2011-05-12 21:25:56 +00:00
parent 6a953f81ad
commit e481d312f0
2 changed files with 2 additions and 9 deletions

View File

@ -50,8 +50,7 @@ if(ICONV_FOUND)
endif()
add_library(intl STATIC ${intl_sources} ${intl_headers})
set(LIBINTL_LIBRARIES intl)
add_custom_target(intl_target DEPENDS intl)
set(LIBINTL_LIBRARIES intl CACHE STRING "libintl library" FORCE)
if(ICONV_FOUND)
target_link_libraries(intl ${ICONV_LIBRARY})

View File

@ -127,17 +127,11 @@ target_link_libraries(${_lyx}
frontend_qt4
graphics
support
${LIBINTL_LIBRARIES}
${ICONV_LIBRARY}
${QT_QTMAIN_LIBRARY}
${vld_dll})
if(NOT LYX_EXTERNAL_LIBINTL OR WIN32)
# TODO remove, use LIBINTL_LIBRARIES
target_link_libraries(${_lyx} intl)
add_dependencies(${_lyx} intl_target)
else()
target_link_libraries(${_lyx} ${LIBINTL_LIBRARIES})
endif()
if(HUNSPELL_FOUND)
target_link_libraries(${_lyx} ${HUNSPELL_LIBRARY})