summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-12-29 01:08:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-12-29 01:23:25 +0100
commit2bcaeab34e1f7d3714416a6d5290701d2b02be1e (patch)
tree0d38def58def14e0d9783373d5188855e94fa6eb /templates
parent6980b57268b7f10fa56a36a56f16ab255266027f (diff)
downloadtde-cmake-2bcaeab34e1f7d3714416a6d5290701d2b02be1e.tar.gz
tde-cmake-2bcaeab34e1f7d3714416a6d5290701d2b02be1e.zip
Add the ability to specify the necessary CXX features.
This increases the minimum necessary version of CMake to 3.1. There are three levels: 1. TDE_CXX_FEATURES common for all TDE modules 2. PROJECT_CXX_FEATURES common at invidual module level 3. CXX_FEATURES and CXX_FEATURES_PRIVATE for individual libraries and binaries Public CXX_FEATURES for libraries become part of the exported CMake target. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'templates')
-rw-r--r--templates/tde_export_library.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/tde_export_library.cmake b/templates/tde_export_library.cmake
index 4d6cb3f..7e4ec26 100644
--- a/templates/tde_export_library.cmake
+++ b/templates/tde_export_library.cmake
@@ -1,6 +1,7 @@
add_library( @_target@ @_type@ IMPORTED )
set_target_properties( @_target@ PROPERTIES
+ INTERFACE_COMPILE_FEATURES "@_cxx_features@"
IMPORTED_LINK_INTERFACE_LIBRARIES "@_shared_libs@"
IMPORTED_LOCATION "@_location@"
IMPORTED_SONAME "@_soname@" )