summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-10-03 10:13:00 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-10-04 01:52:56 +0200
commita48514b3342c9a36c1158873d2abfc4d14ffbd44 (patch)
treeb8327909aec772986254b04bb56aadc9ba7f1ac2
parent74c8d740b328081da771e22bc6cde6662383c88e (diff)
downloadtde-i18n-a48514b3342c9a36c1158873d2abfc4d14ffbd44.tar.gz
tde-i18n-a48514b3342c9a36c1158873d2abfc4d14ffbd44.zip
Install symlinks for 'common' files as relative.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 94b09fe00dbbd7117628f4bb3e37a828abc72742)
-rw-r--r--template/commonCMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/template/commonCMakeLists.txt b/template/commonCMakeLists.txt
index bdfbb0b2a16..bee9b92b504 100644
--- a/template/commonCMakeLists.txt
+++ b/template/commonCMakeLists.txt
@@ -3,7 +3,7 @@
# (C) 2013 Alexander Golubev (Fat-Zer)
# fatzer2 (AT) gmail.com
#
-# (C) 2020 Slávek Banko
+# (C) 2020-2022 Slávek Banko
# slavek.banko (AT) axis.cz
#
# Improvements and feedback are welcome
@@ -12,7 +12,7 @@
#
#################################################
-cmake_minimum_required( VERSION 2.8.12 )
+cmake_minimum_required( VERSION 3.1 )
##### general package setup #####################
@@ -97,8 +97,12 @@ if( BUILD_DOC )
endforeach( )
endif()
foreach( _file IN LISTS common_docs_LINK )
+ file( RELATIVE_PATH _common_link_target
+ "${HTML_INSTALL_DIR}/${_lang}/common"
+ "${TDE_HTML_DIR}/en/common/${_file}"
+ )
tde_install_symlink(
- ${TDE_HTML_DIR}/en/common/${_file}
+ ${_common_link_target}
${HTML_INSTALL_DIR}/${_lang}/common/${_file}
)
endforeach( )