examples: CMakeLists: drop redundant cmake_minimum_required
authorDavid Härdeman <david@hardeman.nu>
Sun, 5 Oct 2025 15:49:28 +0000 (17:49 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 7 Oct 2025 12:19:52 +0000 (14:19 +0200)
The examples depend on the parent libubox project and can't be built
independently.

Drop redundant cmake_minimum_required from examples/CMakeLists.txt
and inherit the version from the parent CMake project to keep
version consistency.

Signed-off-by: David Härdeman <david@hardeman.nu>
Link: https://github.com/openwrt/libubox/pull/21
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
examples/CMakeLists.txt

index 0ca52816552352d291e75f53d65e54bc99d06fcb..9347ac2b9b80afa6042e404830e4c292ecb6d8f5 100644 (file)
@@ -1,5 +1,3 @@
-cmake_minimum_required(VERSION 3.10)
-
 IF (BUILD_EXAMPLES)
     PROJECT(ubox-examples C)
     ADD_DEFINITIONS(-O1 -Wall -Werror --std=gnu99 -g3)