summaryrefslogtreecommitdiffstats
path: root/template/commonCMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'template/commonCMakeLists.txt')
-rw-r--r--template/commonCMakeLists.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/template/commonCMakeLists.txt b/template/commonCMakeLists.txt
index bdfbb0b2a16..259c326bf87 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,12 @@
#
#################################################
-cmake_minimum_required( VERSION 2.8.12 )
+
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
+tde_set_project_version( )
##### general package setup #####################
@@ -97,8 +102,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( )