Commit c2232022 authored by Vitaly Takmazov's avatar Vitaly Takmazov

signals: no warning when Swiften < 4 used

parent 9a47ea25
......@@ -44,6 +44,9 @@ if( SWIFTEN_LIBRARY AND SWIFTEN_INCLUDE_DIR )
message( STATUS "Found Swiften > 4 requesting C++11")
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
endif()
if("${SWIFTEN_VERSION}" STRLESS "4")
set(CMAKE_CXX_FLAGS "-DBOOST_SIGNALS_NO_DEPRECATION_WARNING ${CMAKE_CXX_FLAGS}")
endif()
set( SWIFTEN_FOUND 1 )
else()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment