Skip to content

Commit 25c5de3

Browse files
committed
CMake tools: use CMAKE_CURRENT_LIST_DIR instead of MBED_PATH
1 parent 9985124 commit 25c5de3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/cmake/profile.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ else()
2929
endif()
3030
endif()
3131

32-
include(${mbed-os_SOURCE_DIR}/tools/cmake/profiles/${LOWERCASE_CMAKE_BUILD_TYPE}.cmake)
32+
include(${CMAKE_CURRENT_LIST_DIR}/profiles/${LOWERCASE_CMAKE_BUILD_TYPE}.cmake)

tools/cmake/toolchain.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ set(link_options "")
100100
set(common_options "")
101101
set(c_cxx_compile_options "") # compile options only for C/CXX
102102
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)
105105

106106
#converts a list into a string with each of its elements seperated by a space
107107
macro(list_to_space_separated OUTPUT_VAR)# 2nd arg: LIST...

0 commit comments

Comments
 (0)