From 5e69edac2ec4d23a443de11d6f3f11912d8b2d89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Sun, 5 Oct 2025 14:29:05 +0200 Subject: [PATCH] CMakeLists: fix CMake warning for INCLUDE macro MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix CMake warning for INCLUDE macro by moving the INCLUDE after the PROJECT declaration. CMake Warning (dev) at /usr/share/cmake-3.31/Modules/GNUInstallDirs.cmake:253 (message): Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target architecture is known. Please enable at least one language before including GNUInstallDirs. Signed-off-by: David Härdeman [ improve commit description ] Link: https://github.com/openwrt/uci/pull/7 Signed-off-by: Christian Marangi --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b4c000..9add836 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.13) -INCLUDE(GNUInstallDirs) PROJECT(uci C) +INCLUDE(GNUInstallDirs) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") -- 2.30.2