Commit 4142eeb4 authored by François Grisez's avatar François Grisez
Browse files

Fix CMake issues about the generation of the list of languages

parent 594774d9
......@@ -30,9 +30,8 @@ set(LINPHONE_MICRO_VERSION "1")
set(LINPHONE_VERSION "${LINPHONE_MAJOR_VERSION}.${LINPHONE_MINOR_VERSION}.${LINPHONE_MICRO_VERSION}")
set(LINPHONE_SO_VERSION "6")
file(GLOB LINPHONE_PO_FILES RELATIVE "po" "po/*.po")
string(REPLACE ".po" "" LINPHONE_ALL_LANGS "${LINPHONE_PO_FILES}")
file(GLOB LINPHONE_PO_FILES RELATIVE "${CMAKE_SOURCE_DIR}/po" "${CMAKE_SOURCE_DIR}/po/*.po")
string(REGEX REPLACE "([a-zA-Z_]+)\\.po" "\\1" LINPHONE_ALL_LANGS "${LINPHONE_PO_FILES}")
include(CMakeDependentOption)
......
......@@ -21,8 +21,7 @@
############################################################################
if(GETTEXT_FOUND)
string(REPLACE " " ";" LANGUAGES ${LINPHONE_ALL_LANGS})
foreach(language ${LANGUAGES})
foreach(language ${LINPHONE_ALL_LANGS})
GETTEXT_PROCESS_PO_FILES(${language} ALL PO_FILES ${language}.po)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${language}.gmo
DESTINATION ${PACKAGE_LOCALE_DIR}/${language}/LC_MESSAGES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment