From 9f6fd2bfebca6066c7d4b2c60b94b6085a1da95b Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 2 Jan 2022 20:34:40 +0000 Subject: [PATCH] Only set -Wnon-virtual-dtor for C++ files --- cmake/CompileFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 4297447e4b..eb5ca74f9a 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -65,7 +65,7 @@ macro(compile_flags) -Wformat-security -Wformat=2 -Winit-self - -Wnon-virtual-dtor + "$<$:-Wnon-virtual-dtor>" # Often parameters are unused, which is fine. -Wno-unused-parameter