While using internal libintl, make sure it is uptodate before linking lyx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38631 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2011-05-08 09:19:12 +00:00
parent f66746be70
commit 1d23f8bf79
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ endif()
add_library(intl STATIC ${intl_sources} ${intl_headers})
set(LIBINTL_LIBRARIES intl)
add_custom_target(intl_target DEPENDS intl)
if(ICONV_FOUND)
target_link_libraries(intl ${ICONV_LIBRARY})

View File

@ -128,6 +128,7 @@ target_link_libraries(${_lyx}
if(NOT LYX_EXTERNAL_LIBINTL OR WIN32)
target_link_libraries(${_lyx} intl)
add_dependencies(${_lyx} intl_target)
endif()
if(HUNSPELL_FOUND)