From a3dc3054b846a67b1ccdb7aecb2e4f1bf5d94020 Mon Sep 17 00:00:00 2001 From: karina Date: Sun, 3 May 2026 00:43:31 +0400 Subject: [PATCH] build: added -Wno-incompatible-library-redeclaration to kernel cmakelists to disable warning --- Kernel/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt index 4e24457..3ac5557 100644 --- a/Kernel/CMakeLists.txt +++ b/Kernel/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20) project(ksOSKernel LANGUAGES ASM C) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -file(GLOB_RECURSE KERNEL_SOURCES CMAKE_CONFIGURE_DEPENDS +file(GLOB_RECURSE KERNEL_SOURCES CMAKE_CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Source/KernelMain.c ${CMAKE_CURRENT_SOURCE_DIR}/Source/Arch/entry.S ${CMAKE_CURRENT_SOURCE_DIR}/Source/Arch/vectors.S @@ -10,24 +10,25 @@ file(GLOB_RECURSE KERNEL_SOURCES CMAKE_CONFIGURE_DEPENDS ) add_executable(Kernel ${KERNEL_SOURCES}) -target_include_directories(Kernel PRIVATE +target_include_directories(Kernel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Include/ ${CMAKE_CURRENT_SOURCE_DIR}/../Common ) -target_compile_options(Kernel PRIVATE +target_compile_options(Kernel PRIVATE $<$: -std=c23 -ffreestanding -fno-stack-protector -fno-builtin -Wall -Wextra + -Wno-incompatible-library-redeclaration -g -mgeneral-regs-only > ) -target_link_options(Kernel PRIVATE +target_link_options(Kernel PRIVATE -nostdlib -static -no-pie