Skip to content

Commit 8597166

Browse files
committed
CMake greentea: fix list dir for app.cmake inclusion
1 parent 3a591eb commit 8597166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/cmake/mbed_greentea.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
set(MBED_CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "")
55

6-
include(${mbed-os_SOURCE_DIR}/tools/cmake/app.cmake)
6+
include(${CMAKE_CURRENT_LIST_DIR}/app.cmake)
77

88
# CMake Macro for generalizing CMake configuration across the greentea test suite with configurable parameters
99
# Macro args:
@@ -37,7 +37,7 @@ macro(mbed_greentea_add_test)
3737

3838
set(TEST_NAME ${MBED_GREENTEA_TEST_NAME})
3939

40-
add_subdirectory(${mbed-os_SOURCE_DIR} build)
40+
add_subdirectory(${CMAKE_CURRENT_LIST_DIR} build)
4141

4242
add_executable(${TEST_NAME})
4343

0 commit comments

Comments
 (0)