From: David Härdeman Date: Sun, 5 Oct 2025 12:29:05 +0000 (+0200) Subject: CMakeLists: fix CMake warning for INCLUDE macro X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=5e69edac2ec4d23a443de11d6f3f11912d8b2d89;p=project%2Fuci.git CMakeLists: fix CMake warning for INCLUDE macro 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 --- 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 "")