summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Gräsman <kim.grasman@gmail.com>2022-08-28 14:47:29 +0200
committerKim Gräsman <kim.grasman@gmail.com>2022-08-28 14:52:23 +0200
commite94a78b3a569197e124f9dd1d5068da46ebb0031 (patch)
tree386ef06071d996da354a7f04ac0027365acdb843
parent39e45aa453b5254ffe26275be97ed158d4ee168d (diff)
[cmake] Require C++17 as does LLVM
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fcfa0ce..a97d148 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,10 +118,10 @@ add_llvm_executable(include-what-you-use
# available when IWYU is executed from the build dir.
add_dependencies(include-what-you-use clang-resource-headers)
-# LLVM requires C++14, so follow suit.
+# LLVM requires C++17, so follow suit.
set_target_properties(include-what-you-use PROPERTIES
CXX_STANDARD_REQUIRED ON
- CXX_STANDARD 14
+ CXX_STANDARD 17
CXX_EXTENSIONS OFF
)