summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2018-03-13 20:23:29 +0100
committerSteve Markgraf <steve@steve-m.de>2018-03-13 20:23:29 +0100
commitfcc6956cbd57457928332eae01a5ff518db24499 (patch)
tree3e0d4265848ec2795aece5c2d453d271211e673d
parent64a1d97017aaa769d8181645cd198616fb2a105b (diff)
fix build with GCC 7HEADmaster
Signed-off-by: Steve Markgraf <steve@steve-m.de>
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1d8f1c..72ce30e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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