Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Meel <ankitjmeel@gmail.com>2021-08-22 19:45:28 +0300
committerAnkit Meel <ankitjmeel@gmail.com>2021-08-22 19:45:28 +0300
commitb4773334732350162f02aab6b6154dfc73165f85 (patch)
tree685fb21f2d8f0faa0de4450825e89ddbcddaea0a
parenta1e91fbef3dc9a5d5c8456cd9a887aac1bdb652c (diff)
Cleanup: fix comment about compiler support.
Differential Revision: https://developer.blender.org/D12288
-rw-r--r--CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a555876d21..47712f0ac1e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1598,8 +1598,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_UNUSED_PARAMETER -Wunused-parameter)
ADD_CHECK_CXX_COMPILER_FLAG(CXX_WARNINGS CXX_WARN_ALL -Wall)
- # Designated initializer is a C++20 feature & breaks MSVC build. Dropping MSVC 2019 or
- # updating to C++20 allows removing this.
+ # Using C++20 features while having C++17 as the project language isn't allowed by MSVC.
ADD_CHECK_CXX_COMPILER_FLAG(CXX_WARNINGS CXX_CXX20_DESIGNATOR -Wc++20-designator)
ADD_CHECK_CXX_COMPILER_FLAG(CXX_WARNINGS CXX_WARN_NO_AUTOLOGICAL_COMPARE -Wno-tautological-compare)