From b0c266111915496f438f72b4b8255a5aaa1e077d Mon Sep 17 00:00:00 2001 From: Dimitar Date: Sun, 7 Mar 2021 15:37:17 +0100 Subject: [PATCH] Fix CMake compiler and linker detection. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4187c79d..4f1d001e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,8 +10,8 @@ project(course_os) set(CMAKE_SYSTEM_NAME linux) set(CMAKE_SYSTEM_PROCESSOR arm) -set(CMAKE_C_COMPILER ${CMAKE_CURRENT_SOURCE_DIR}/toolchain/arm-none-eabi/bin/arm-none-eabi-gcc) -set(CMAKE_C_LINK_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/toolchain/arm-none-eabi/bin/arm-none-eabi-ld) +set(CMAKE_C_COMPILER ${CMAKE_CURRENT_SOURCE_DIR}/src/toolchain/arm-none-eabi/bin/arm-none-eabi-gcc) +set(CMAKE_C_LINK_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/src/toolchain/arm-none-eabi/bin/arm-none-eabi-ld) file(GLOB_RECURSE kernel_sources ./src/kernel/src/*.c ./src/kernel/src/**/*.c) file(GLOB_RECURSE kernel_include LIST_DIRECTORIES true ./src/kernel/src/**/include)