From a58086ae0ded9412921a1a1f02b30901bfb4e599 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Tue, 9 Feb 2021 21:28:33 -0500 Subject: [PATCH] common: Add -fsized-deallocation as a Clang flag Prevents an operator delete error when compiling with Clang 11. --- src/common/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index bfd11e76d..263c457cd 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -206,6 +206,8 @@ if (MSVC) else() target_compile_options(common PRIVATE -Werror + + $<$:-fsized-deallocation> ) endif()