summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/CMakeLists.txt
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-02-06 16:54:13 (GMT)
committerRaul Tambre <raul@tambre.ee>2021-02-25 16:22:10 (GMT)
commit93b7d3d29221f98388c7fa20568cd0b769a26774 (patch)
tree389c3bf8cd1e2a9cc03f431874d16448eee9fe1d /Tests/CompileFeatures/CMakeLists.txt
parent58d9525233e4ffca1c7edc7a5978770a0e4ec36d (diff)
downloadCMake-93b7d3d29221f98388c7fa20568cd0b769a26774.zip
CMake-93b7d3d29221f98388c7fa20568cd0b769a26774.tar.gz
CMake-93b7d3d29221f98388c7fa20568cd0b769a26774.tar.bz2
C17 support
Implements #17755.
Diffstat (limited to 'Tests/CompileFeatures/CMakeLists.txt')
-rw-r--r--Tests/CompileFeatures/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt
index cff98e3..046b858 100644
--- a/Tests/CompileFeatures/CMakeLists.txt
+++ b/Tests/CompileFeatures/CMakeLists.txt
@@ -237,6 +237,7 @@ if (C_expected_features)
if (std_flag_idx EQUAL -1)
add_executable(default_dialect_C default_dialect.c)
target_compile_definitions(default_dialect_C PRIVATE
+ DEFAULT_C17=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},17>
DEFAULT_C11=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},11>
DEFAULT_C99=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},99>
DEFAULT_C90=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},90>