git-svn-id: svn://db.shs.com.ru/pip@997 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2020-03-27 18:29:08 +00:00
parent 27e763e5e3
commit cae1e34119

View File

@@ -18,9 +18,16 @@
#
#
#
# set_lang(<target> <lang> [<lang> [...]])
#
# Set target translations, e.g. "ru" "fr"
#
#
#
#
# import_version(<target> <source_target>)
#
# Copy all version components from <source_target>
# Copy all version components and languages from <source_target>
#
#
#
@@ -102,6 +109,7 @@
#
cmake_policy(SET CMP0011 NEW) # don`t affect includer policies
if (POLICY CMP0057)
cmake_policy(SET CMP0057 NEW) # Support if() IN_LIST
endif()
@@ -195,12 +203,21 @@ macro(set_version _T)
endmacro()
macro(set_lang _T)
set(${_T}_LANG)
foreach(_i ${ARGN})
list(APPEND ${_T}_LANG "${_i}")
endforeach()
endmacro()
macro(import_version _T _F)
set(_names "${__version_names};FULLSUFFIX")
foreach(_i ${_names})
set(${_T}_VERSION_${_i} "${${_F}_VERSION_${_i}}")
endforeach()
set(${_T}_VERSION "${${_F}_VERSION}")
set(${_T}_LANG "${${_F}_LANG}")
endmacro()