From 6350032e88c64fc4e4a6817650aad69fc9ff8fc5 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 22 Mar 2026 19:01:36 +0000 Subject: [PATCH] cmake: update for compatibility with CMake 4.0 --- CMakeLists.txt | 4 +--- libmango/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index adc2ff0..38b2776 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 4.0) project(mango C ASM) if (NOT BUILD_TOOLS_DIR) @@ -28,8 +28,6 @@ file(GLOB_RECURSE arch_sources_c arch/${kernel_arch}/*.c) file(GLOB_RECURSE arch_sources_asm arch/${kernel_arch}/*.S) file(GLOB_RECURSE arch_headers arch/${kernel_arch}/*.h) -set_property(SOURCE ${arch_sources_asm} PROPERTY LANGUAGE C) - add_executable(${kernel_exe_name} ${kernel_sources} ${kernel_headers} diff --git a/libmango/CMakeLists.txt b/libmango/CMakeLists.txt index afff680..939b0be 100644 --- a/libmango/CMakeLists.txt +++ b/libmango/CMakeLists.txt @@ -1,7 +1,6 @@ file(GLOB headers ${CMAKE_CURRENT_SOURCE_DIR}/include/mango/*.h) file(GLOB asm_sources ${CMAKE_CURRENT_SOURCE_DIR}/arch/${CMAKE_SYSTEM_PROCESSOR}/*.S) -set_property(SOURCE ${asm_sources} PROPERTY LANGUAGE C) set(public_include_dirs ${CMAKE_CURRENT_SOURCE_DIR}/include