From e939fcccf36f2a89435b0f8328db9be32ce3b600 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 29 Sep 2018 22:26:11 +0200 Subject: CMake/po: Check for presence of intltool for creating inkscape.pot Also remove FindGettext module and use the one that ships with CMake (bumps minimum version to CMake 2.8.8 for GETTEXT_VERSION_STRING) --- CMakeScripts/DefineDependsandFlags.cmake | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'CMakeScripts/DefineDependsandFlags.cmake') diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index f3663c353..0655935db 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -259,14 +259,14 @@ list(GET GTKMM_VERSION_COMPONENTS 2 INKSCAPE_GTKMM_MICRO_VERSION) pkg_check_modules(GDL_3_6 gdl-3.0>=3.6) if("${GDL_3_6_FOUND}") - message("Using GDL 3.6 or higher") + message(STATUS "Using GDL 3.6 or higher") add_definitions(-DWITH_GDL_3_6) set (WITH_GDL_3_6 ON) endif() pkg_check_modules(GTKSPELL3 gtkspell3-3.0) if("${GTKSPELL3_FOUND}") - message("Using GtkSpell 3") + message(STATUS "Using GtkSpell 3") list(APPEND INKSCAPE_INCS_SYS ${GTKSPELL3_INCLUDE_DIRS}) list(APPEND INKSCAPE_LIBS ${GTKSPELL3_LIBRARIES}) set(WITH_GTKSPELL ON) @@ -346,6 +346,13 @@ if(WITH_NLS) else(GETTEXT_FOUND) message(STATUS "Cannot find gettext + msgfmt to convert language file. Translation won't be enabled") endif(GETTEXT_FOUND) + + find_program(INTLTOOL-UPDATE intltool-update) + if(INTLTOOL-UPDATE) + message(STATUS "Found íntltool. inkscape.pot will be re-created if missing.") + else() + message(STATUS "Did not find íntltool. inkscape.pot can't be re-created.") + endif() endif(WITH_NLS) pkg_check_modules(SIGC++ REQUIRED sigc++-2.0 ) -- cgit v1.2.3