File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ function(mbed_generate_map_file target)
216
216
TARGET
217
217
${target}
218
218
POST_BUILD
219
- COMMAND ${Python3_EXECUTABLE} ${MBED_PATH } /tools/memap.py -t ${MBED_TOOLCHAIN} ${CMAKE_CURRENT_BINARY_DIR} /${target}${CMAKE_EXECUTABLE_SUFFIX}.map
219
+ COMMAND ${Python3_EXECUTABLE} ${mbed-os_SOURCE_DIR }/tools/memap.py -t ${MBED_TOOLCHAIN} ${CMAKE_CURRENT_BINARY_DIR} /${target}${CMAKE_EXECUTABLE_SUFFIX}.map
220
220
WORKING_DIRECTORY
221
221
${CMAKE_CURRENT_BINARY_DIR}
222
222
COMMENT
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ include(${MBED_CONFIG_PATH}/mbed_config.cmake)
12
12
# Load toolchain file
13
13
if (NOT CMAKE_TOOLCHAIN_FILE OR MBED_TOOLCHAIN_FILE_USED )
14
14
set (MBED_TOOLCHAIN_FILE_USED TRUE CACHE INTERNAL "" )
15
- include (${MBED_PATH } /tools/cmake/toolchain.cmake )
15
+ include (${mbed-os_SOURCE_DIR }/tools/cmake/toolchain.cmake )
16
16
endif ()
17
17
18
18
# Specify available build profiles and add options for the selected build profile
19
- include (${MBED_PATH } /tools/cmake/profile.cmake )
19
+ include (${mbed-os_SOURCE_DIR }/tools/cmake/profile.cmake )
20
20
21
21
enable_language (C CXX ASM )
22
22
Original file line number Diff line number Diff line change 3
3
4
4
set (MBED_CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "" )
5
5
6
- include (${MBED_PATH} /tools/cmake /app.cmake )
6
+ include (${CMAKE_CURRENT_LIST_DIR} /app.cmake )
7
7
8
8
# CMake Macro for generalizing CMake configuration across the greentea test suite with configurable parameters
9
9
# Macro args:
Original file line number Diff line number Diff line change 29
29
endif ()
30
30
endif ()
31
31
32
- include (${MBED_PATH} /tools/cmake /profiles/${LOWERCASE_CMAKE_BUILD_TYPE}.cmake )
32
+ include (${CMAKE_CURRENT_LIST_DIR} /profiles/${LOWERCASE_CMAKE_BUILD_TYPE}.cmake )
Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ 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 (${MBED_PATH} /tools/cmake /toolchains/${MBED_TOOLCHAIN}.cmake )
104
- include (${MBED_PATH} /tools/cmake /cores/${MBED_CPU_CORE}.cmake )
103
+ include (${CMAKE_CURRENT_LIST_DIR} /toolchains/${MBED_TOOLCHAIN}.cmake )
104
+ include (${CMAKE_CURRENT_LIST_DIR} /cores/${MBED_CPU_CORE}.cmake )
105
105
106
106
#converts a list into a string with each of its elements seperated by a space
107
107
macro (list_to_space_separated OUTPUT_VAR )# 2nd arg: LIST...
You can’t perform that action at this time.
0 commit comments