aboutsummaryrefslogtreecommitdiff
path: root/include/cmake.mk
diff options
context:
space:
mode:
authorTjalling Hattink <t.hattink@fugro.com>2023-09-26 15:10:52 +0200
committerPaul Spooren <mail@aparcar.org>2023-10-04 12:28:45 +0200
commit29a56e0412668f197353001254125ae40824db1e (patch)
treeb7eac450e3bc9a6c92e015f10d448c309de911ba /include/cmake.mk
parentcd56a682326f9de4d77ee3afb99d13d25c478c08 (diff)
build: suppress cmake warnings about unused vars
When cmake is invoked to build a package it usually reports a warning about unused variables passed to it. This is caused by openwrt passing all supported variables to cmake, even if they are not all required by the package being compiled. To reduce clutter when compiling such packages these warnings are now suppressed. Approved-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Tjalling Hattink <t.hattink@fugro.com>
Diffstat (limited to 'include/cmake.mk')
-rw-r--r--include/cmake.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cmake.mk b/include/cmake.mk
index 9b169b0693..95870ffdb0 100644
--- a/include/cmake.mk
+++ b/include/cmake.mk
@@ -89,6 +89,7 @@ define Build/Configure/Default
CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
cmake \
+ --no-warn-unused-cli \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_SYSTEM_PROCESSOR=$(ARCH) \
@@ -141,6 +142,7 @@ define Host/Configure/Default
CXXFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \
cmake \
+ --no-warn-unused-cli \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER_LAUNCHER="$(CMAKE_C_COMPILER_LAUNCHER)" \
-DCMAKE_C_COMPILER="$(CMAKE_HOST_C_COMPILER)" \