summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-16 17:32:21 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-16 17:32:23 +0900
commit34d852f2df80e17da0cd0e1159b1c1fa155735e2 (patch)
tree1e71834ceea533997283ae83466fcba839891473 /modules
parentf49705f34e26a4204923b026896d9b111abd5ad5 (diff)
downloadtde-cmake-34d852f2df80e17da0cd0e1159b1c1fa155735e2.tar.gz
tde-cmake-34d852f2df80e17da0cd0e1159b1c1fa155735e2.zip
Fix up logic to set minimum C++ standard.
This version does not enforce a downgrade if the default standard in use on a system is higher. This relates to PR #134 and discussion in TDE/tqt#244. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'modules')
-rw-r--r--modules/TDEMacros.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index c1285f9..cff3e8b 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -2926,9 +2926,7 @@ macro( tde_setup_compiler_flags )
# Set minimum required ISO C++ standard and forces
# failure in case the compiler doesn't support it
- set(CMAKE_CXX_STANDARD 17)
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
- set(CMAKE_CXX_EXTENSIONS OFF)
+ set( TDE_CXX_FEATURES cxx_std_17 )
endmacro( )