diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | arch/x86_64/CMakeLists.txt | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/arch/CMakeLists.txt b/arch/CMakeLists.txt index 661de26..83da439 100644 --- a/arch/CMakeLists.txt +++ b/arch/CMakeLists.txt @@ -23,3 +23,5 @@ target_link_libraries("arch-any" INTERFACE ) add_subdirectory("${CMAKE_SYSTEM_PROCESSOR}") + +set(KERNEL_LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_SYSTEM_PROCESSOR}/scripts/kernel.ld" PARENT_SCOPE) diff --git a/arch/x86_64/CMakeLists.txt b/arch/x86_64/CMakeLists.txt index 58daa3b..431520e 100644 --- a/arch/x86_64/CMakeLists.txt +++ b/arch/x86_64/CMakeLists.txt @@ -11,14 +11,6 @@ target_link_libraries("arch-x86_64" PUBLIC "libs::multiboot2" ) -target_link_options("arch-x86_64" PUBLIC - "-T${CMAKE_CURRENT_SOURCE_DIR}/scripts/kernel.ld" -) - -set_target_properties("arch-x86_64" PROPERTIES - LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/kernel.ld" -) - #[============================================================================[ # arch::any Implementation #]============================================================================] |
