File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
+ # Add our CMake list files to CMake default module path
5
+ set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH} ;${CMAKE_CURRENT_LIST_DIR} " )
6
+
4
7
find_program (CCACHE "ccache" )
5
8
if (CCACHE )
6
9
set (CMAKE_C_COMPILER_LAUNCHER ${CCACHE} )
@@ -12,11 +15,11 @@ include(${MBED_CONFIG_PATH}/mbed_config.cmake)
12
15
# Load toolchain file
13
16
if (NOT CMAKE_TOOLCHAIN_FILE OR MBED_TOOLCHAIN_FILE_USED )
14
17
set (MBED_TOOLCHAIN_FILE_USED TRUE CACHE INTERNAL "" )
15
- include (${mbed-os_SOURCE_DIR}/tools/cmake/ toolchain.cmake )
18
+ include (toolchain )
16
19
endif ()
17
20
18
21
# Specify available build profiles and add options for the selected build profile
19
- include (${mbed-os_SOURCE_DIR}/tools/cmake/ profile.cmake )
22
+ include (profile )
20
23
21
24
enable_language (C CXX ASM )
22
25
@@ -26,7 +29,7 @@ set(CMAKE_EXECUTABLE_SUFFIX .elf)
26
29
27
30
# Find Python
28
31
find_package (Python3 COMPONENTS Interpreter )
29
- include (${CMAKE_CURRENT_LIST_DIR} / CheckPythonPackage.cmake )
32
+ include (CheckPythonPackage )
30
33
31
34
# Check python packages from requirements.txt
32
35
file (STRINGS ${CMAKE_CURRENT_LIST_DIR} /requirements.txt PYTHON_REQUIREMENTS )
Original file line number Diff line number Diff line change 29
29
endif ()
30
30
endif ()
31
31
32
- include (${CMAKE_CURRENT_LIST_DIR} / profiles/${LOWERCASE_CMAKE_BUILD_TYPE}.cmake )
32
+ include (profiles/${LOWERCASE_CMAKE_BUILD_TYPE} )
Original file line number Diff line number Diff line change @@ -100,8 +100,9 @@ set(link_options "")
100
100
set (common_options "" )
101
101
set (c_cxx_compile_options "" ) # compile options only for C/CXX
102
102
set (asm_compile_options "" ) # compile options only for ASM
103
- include (${CMAKE_CURRENT_LIST_DIR} /toolchains/${MBED_TOOLCHAIN}.cmake )
104
- include (${CMAKE_CURRENT_LIST_DIR} /cores/${MBED_CPU_CORE}.cmake )
103
+
104
+ include (toolchains/${MBED_TOOLCHAIN} )
105
+ include (cores/${MBED_CPU_CORE} )
105
106
106
107
#converts a list into a string with each of its elements seperated by a space
107
108
macro (list_to_space_separated OUTPUT_VAR )# 2nd arg: LIST...
You can’t perform that action at this time.
0 commit comments