Skip to content

Commit

Permalink
CMake: Make the application the top level CMake project
Browse files Browse the repository at this point in the history
So CMake can work correctly we need to define our project before we add
dependencies, otherwise the project we depend on will be registered as
the current project.
  • Loading branch information
rwalton-arm committed Jul 20, 2021
1 parent 466d71a commit 93e511d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ set(APP_TARGET mbed-os-example-crash-reporting)

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

project(${APP_TARGET})

add_subdirectory(${MBED_PATH})

add_executable(${APP_TARGET})

mbed_configure_app_target(${APP_TARGET})

project(${APP_TARGET})

target_sources(${APP_TARGET}
PRIVATE
main.cpp
Expand Down

0 comments on commit 93e511d

Please sign in to comment.