From fa458cdf0e088b2e281a5b477ae49489f536c0b3 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 29 Sep 2017 17:24:14 -0700 Subject: [PATCH] build: get rid of annoying CMake warning (#8033) Depending on the CMake version when we are configuring it emits a warning about deprecation of CMAKE_FORCE_CXX_COMPILER. However we rely on this macro and don't want to do what CMAKE_CXX_COMPILER is doing. Here is what I get with CMake 3.9.1: CMake Deprecation Warning at /usr/share/cmake/Modules/CMakeForceCompiler.cmake:83 (message): The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set CMAKE_CXX_COMPILER and allow CMake to identify the compiler. Call Stack (most recent call first): cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler) /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:94 (include) CMakeLists.txt:263 (project) Avoid the warning by passing -Wno-deprecated to cmake. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ebec3ce90..489e3023d9 100644 --- a/Makefile +++ b/Makefile @@ -119,7 +119,8 @@ ifdef VNP endif # additional config parameters passed to cmake -CMAKE_ARGS := +CMAKE_ARGS := -Wno-deprecated + ifdef EXTERNAL_MODULES_LOCATION CMAKE_ARGS := -DEXTERNAL_MODULES_LOCATION:STRING=$(EXTERNAL_MODULES_LOCATION) endif