Skip to content

Commit a8f1d5b

Browse files
committed
CMake: Fix platform wait_ns greentea test Cmake
MBed CLI2 generates TARGET_ARM_FM macro as a string in mbed_config.cmake under MBED_TARGET_DEFINITIONS list so fixed the if defined check of TARGET_ARM_FM with finding TARGET_ARM_FM string in MBED_TARGET_DEFINITIONS list to skip/include test
1 parent 756830e commit a8f1d5b

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)