Skip to content

Commit 9985124

Browse files
committed
CMake app: use CMAKE_CURRENT_LIST_DIR instead of MBED_PATH
1 parent 322bcbf commit 9985124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/cmake/app.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ include(${MBED_CONFIG_PATH}/mbed_config.cmake)
1212
# Load toolchain file
1313
if(NOT CMAKE_TOOLCHAIN_FILE OR MBED_TOOLCHAIN_FILE_USED)
1414
set(MBED_TOOLCHAIN_FILE_USED TRUE CACHE INTERNAL "")
15-
include(${mbed-os_SOURCE_DIR}/tools/cmake/toolchain.cmake)
15+
include(${CMAKE_CURRENT_LIST_DIR}/toolchain.cmake)
1616
endif()
1717

1818
# Specify available build profiles and add options for the selected build profile
19-
include(${mbed-os_SOURCE_DIR}/tools/cmake/profile.cmake)
19+
include(${CMAKE_CURRENT_LIST_DIR}/profile.cmake)
2020

2121
enable_language(C CXX ASM)
2222

0 commit comments

Comments
 (0)