build: update to support building under a hosted cross-compiler
This commit is contained in:
+2
-4
@@ -1,10 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.31)
|
||||
project(magenta C ASM)
|
||||
|
||||
if (NOT BUILD_TOOLS_DIR)
|
||||
message(FATAL_ERROR "No build tools directory specified. Please run build.sh")
|
||||
endif ()
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
set(kernel_arch x86_64)
|
||||
@@ -85,3 +81,5 @@ target_include_directories(magenta_debug PRIVATE
|
||||
libc/include
|
||||
libmagenta/include
|
||||
arch/${kernel_arch}/include)
|
||||
|
||||
install(TARGETS ${kernel_exe_name} DESTINATION boot)
|
||||
|
||||
Reference in New Issue
Block a user