]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Let the c++ compiler use the warnings available to it
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 7 Apr 2022 11:59:21 +0000 (13:59 +0200)
committerSimon McVittie <smcv@collabora.com>
Thu, 21 Apr 2022 13:51:55 +0000 (13:51 +0000)
Fixes #387

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
CMakeLists.txt

index 197b095ddfe6f75fb4174aeb13409ead9ef3801f..01223a56d528372b94af38e45266a00fa4618b10 100644 (file)
@@ -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)