cmake: Set MBED_TEST_MODE with INTERFACE
Set MBED_TEST_MODE with INTERFACE. Use INTERFACE because mbed-os is an interface target, and we can only set INTERFACE properties on interface targets. This helps avoid the following error when building an application. CMake Error at mbed-os/CMakeLists.txt:96 (target_compile_definitions): target_compile_definitions may only set INTERFACE properties on INTERFACE targets |
---|
|
CMakeLists.txt |
---|