diff --git a/CMakeLists.txt b/CMakeLists.txt index e3a3db651f4..f3a16464dd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,6 +225,14 @@ else() if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options($<$:-Wno-literal-suffix>) endif() + + # Disable newer Apple Clang warnings about unqualified calls to std::move + if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") + if (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "14.0.3") + add_compile_options($<$:-Wno-unqualified-std-cast-call>) + endif() + endif() + endif() # Definitions for all targets