Skip to content
Commit ed674d58 authored by Rob Walton's avatar Rob Walton Committed by Jaeden Amero
Browse files

Include CTest if IoT SDK is the top level project



Previously we included MCU-Driver-HAL as the top level CMake project.
This was to work around the the hard-coded inclusion of app.cmake to
enable toolchains in the HAL.

Because the HAL was technically the top level CMake project, we couldn't
use the typical check to conditionally include CTest to enable testing.
Instead we checked if the IOTSDK_HTRUN_ARGUMENTS variable was an empty
string.

The HAL has been reworked to use toolchain files passed on the command
line. So we don't have to include it before the IOT SDK project is
declared. Now IoT SDK is the actually the top level project. This means
we can use the standard check to include CTest and enable testing.

Signed-off-by: Rob Walton's avatarRobert Walton <rob.walton@arm.com>
parent a9ffd68f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment