Fix building on Windows by dpeter99
Fix CMake invocation that confused it into using Visual Studio build tools..
This commit is contained in:
parent
162c4def06
commit
903b5439ba
|
@ -1,5 +1,8 @@
|
|||
#project config
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
set(CMAKE_C_COMPILER x86_64-elf-gcc)
|
||||
|
||||
# cheat the compile test
|
||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||||
SET(CMAKE_SYSTEM_NAME Generic)
|
||||
|
@ -52,9 +55,3 @@ add_executable(kernel)
|
|||
target_sources(kernel PUBLIC ${src_preamble} PUBLIC ${src_files} PUBLIC ${src_no_sse} PUBLIC ${lib_files} PUBLIC ${CMAKE_SOURCE_DIR}/font.o PUBLIC ${src_epilogue})
|
||||
target_compile_options(kernel PRIVATE -ffreestanding -O2 -Wall -Wextra -Wall -Werror -pedantic -fPIC -fno-exceptions )
|
||||
target_link_options(kernel PRIVATE -T linker.ld -ffreestanding -O2 -nostdlib -nostartfiles -lgcc)
|
||||
|
||||
add_custom_command(
|
||||
TARGET kernel
|
||||
# POST_BUILD
|
||||
# COMMAND bash post.sh
|
||||
)
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
#include <kernel/system/memory.h>
|
||||
#include <kernel/system/pci.h>
|
||||
|
||||
#include <kernel/system/screen.h>
|
||||
//Removed cause "wacky copyrighted stuff"
|
||||
//#include <kernel/system/screen.h>
|
||||
|
||||
extern size_t LoadAddr;
|
||||
extern bootinfo bootldr;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <kernel/chroma.h>
|
||||
#include <kernel/system/screen.h>
|
||||
//#include <kernel/system/screen.h>
|
||||
|
||||
/************************
|
||||
*** Team Kitty, 2020 ***
|
||||
|
|
Loading…
Reference in New Issue
Block a user