]> git.lyx.org Git - features.git/commitdiff
While using internal libintl, make sure it is uptodate before linking lyx
authorKornel Benko <kornel@lyx.org>
Sun, 8 May 2011 09:19:12 +0000 (09:19 +0000)
committerKornel Benko <kornel@lyx.org>
Sun, 8 May 2011 09:19:12 +0000 (09:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38631 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/intl/CMakeLists.txt
development/cmake/src/CMakeLists.txt

index 96d4301f2f666e0af733e6e8ceb73a78aace1777..f80bb67524c6921fdbb6af63f79f3c73511f2c4b 100644 (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})
index 37eef7cff7a461ce32ffe4b962c2df4e6c4dd91b..a8c016b82a1a12755ce21a81b086e05f62e56586 100644 (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)