fix build with GCC 7

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2018-03-13 20:23:29 +01:00
parent 64a1d97017
commit fcc6956cbd
1 changed files with 5 additions and 0 deletions

View File

@ -283,6 +283,11 @@ if(USE_SIMD MATCHES SSE2)
endif()
endif()
if(CMAKE_COMPILER_IS_GNUCXX)
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wno-narrowing" )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-narrowing" )
endif()
##############################################################################
set(sdrangelove_SOURCES