From b06f66c86dda6df035c06b3b0486bf0211698e1c Mon Sep 17 00:00:00 2001 From: Carlos J Date: Mon, 15 Jan 2018 23:43:15 +0100 Subject: [PATCH] Unbreak the build against new Clang version 6.0.0 --- libgrive/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libgrive/CMakeLists.txt b/libgrive/CMakeLists.txt index 54776bd..3b48e3c 100644 --- a/libgrive/CMakeLists.txt +++ b/libgrive/CMakeLists.txt @@ -142,6 +142,10 @@ target_link_libraries( btest ${Boost_LIBRARIES} ) +if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++11-narrowing" ) +endif ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" ) + if ( WIN32 ) else ( WIN32 ) set_target_properties( btest