diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 809b3efdd937..7b2524361a18 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -459,7 +459,6 @@ target_compile_options( $<$:-Wno-missing-prototypes> $<$:-Wno-nonportable-system-include-path> $<$:-Wno-reserved-id-macro> - $<$:-Wno-return-std-move-in-c++11> $<$:-Wno-shadow-field-in-constructor> $<$:-Wno-shadow-field> $<$:-Wno-shorten-64-to-32> @@ -467,6 +466,9 @@ target_compile_options( $<$:-Wno-unused-member-function> $<$:-Wno-unused-template> + # This warning was removed in Clang 13 + $<$,$,13.0>>:-Wno-return-std-move-in-c++11> + $<$:/W3> $<$:/wd4018> # 4018: disable "signed/unsigned mismatch" $<$:/wd4141> # 4141: 'inline' used more than once