openwrt-6.x/package/utils/jboot-tools/src/CMakeLists.txt
Hannu Nyman 9bd2c55a33
treewide: edit local CMakeLists.txt to be compatible with cmake 4.x
Edit CMakeLists.txt to fulfill cmake 4.0 requirement that
cmake_minimum_required is now at least 3.5 and in future 3.10.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/20265
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-04 15:14:53 +01:00

12 lines
326 B
CMake

cmake_minimum_required(VERSION 3.10)
PROJECT(jboot-tools C)
ADD_DEFINITIONS(-Wall -Werror --std=gnu99 -Wmissing-declarations)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
ADD_EXECUTABLE(jboot_config_read jboot_config_read.c)
TARGET_LINK_LIBRARIES(jboot_config_read)
INSTALL(TARGETS jboot_config_read RUNTIME DESTINATION bin)