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 22, 2021
1 parent 6ae692b commit 11c63d6
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-attestation)

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_include_directories(${APP_TARGET}
PRIVATE
.
Expand Down

0 comments on commit 11c63d6

Please sign in to comment.