Skip to content

Commit ad18cc8

Browse files
committed
CMake: Fix platform wait_ns greentea test Cmake
Mbed CLI 2 generates TARGET_ARM_FM macro as a string in mbed_config.cmake under the MBED_TARGET_DEFINITIONS list. Fix the "if defined" check for TARGET_ARM_FM by searching for the TARGET_ARM_FM string in the MBED_TARGET_DEFINITIONS list. This allows us to skip or include the test from CMake.
1 parent 756830e commit ad18cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/tests/TESTS/mbed_platform/wait_ns/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
include(mbed_greentea)
55

6-
if(DEFINED TARGET_ARM_FM)
6+
if("TARGET_ARM_FM" IN_LIST MBED_TARGET_DEFINITIONS)
77
set(TEST_SKIPPED "Wait ns test not supported.")
88
endif()
99

0 commit comments

Comments
 (0)