diff --git a/CMakeLists.txt b/CMakeLists.txt index a4b186cad2fd1d..da833bb6d49546 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) add_compile_options(-Wno-literal-suffix) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_compile_options(-fconcepts) -elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang$") add_compile_options(-Wno-overloaded-virtual -Wno-user-defined-literals) endif()