From c4181a9c48be0c9de53b179dab2e88ff3b49db1b Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Tue, 10 Nov 2015 12:30:26 +0100 Subject: [PATCH] Disable the compiler warning for deprecated boost::signals usage (#63). We cannot use boost::signals2 right now, because Swiften is not going to use it in the version 3.x.y. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b3b62ec..44193cac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,6 +426,10 @@ if (WIN32) ADD_DEFINITIONS(-DBOOST_THREAD_USE_LIB) endif() +# We cannot use boost:signals2, because Swiften does not use them, +# for now, just ignore the deprecation warning. +ADD_DEFINITIONS(-DBOOST_SIGNALS_NO_DEPRECATION_WARNING) + if(CMAKE_BUILD_TYPE MATCHES Debug) if (CMAKE_COMPILER_IS_GNUCXX) ADD_DEFINITIONS(-O0)