Skip to content

Commit 2664ff5

Browse files
committed
CMake: Fix project definition
We were defining the top level CMake project after adding dependencies, this caused CMake to think mbed-os was the current project.
1 parent 2127abc commit 2664ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ set(APP_TARGET mbed-os-example-for-aws)
99

1010
include(${MBED_PATH}/tools/cmake/app.cmake)
1111

12+
project(${APP_TARGET})
13+
1214
add_subdirectory(${MBED_PATH})
1315
add_subdirectory(mbed-client-for-aws)
1416

@@ -20,8 +22,6 @@ add_executable(${APP_TARGET})
2022

2123
mbed_configure_app_target(${APP_TARGET})
2224

23-
project(${APP_TARGET})
24-
2525
target_include_directories(${APP_TARGET}
2626
PRIVATE
2727
.

0 commit comments

Comments
 (0)