From 523796873fc21fc7970e14a739fefc926d307dc4 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 7 Apr 2022 13:59:21 +0200 Subject: [PATCH] cmake: Let the c++ compiler use the warnings available to it Fixes #387 Signed-off-by: Ralf Habacker --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 197b095dd..01223a56d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,7 +372,7 @@ generate_compiler_warning_flags( ) string(APPEND CMAKE_C_FLAGS " ${WARNINGS_CFLAGS}") -string(APPEND CMAKE_CXX_FLAGS " ${WARNINGS_CFLAGS}") +string(APPEND CMAKE_CXX_FLAGS " ${WARNINGS_CXXFLAGS}") # let wine be able to show file and lines in backtrace if(DBUS_USE_WINE) -- 2.47.3