From a39ba7d4f712d5d9e83a56e39775e44fe467cf21 Mon Sep 17 00:00:00 2001 From: Robert May Date: Tue, 27 Oct 2015 19:53:37 +0000 Subject: [PATCH] Turn off GCC warnings when building the dependancies --- source/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 271ed29..3ce290e 100755 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -80,3 +80,9 @@ target_link_libraries(microbit-dal ble ble-nrf51822 ) + +if(CMAKE_COMPILER_IS_GNUCC) + target_compile_options(mbed-classic PRIVATE "-w") + target_compile_options(ble PRIVATE "-w") + target_compile_options(ble-nrf51822 PRIVATE "-w") +endif()