mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
6a953f81ad
commit
e481d312f0
@ -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})
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user