We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38796d0 commit 6309f9bCopy full SHA for 6309f9b
CMakeLists.txt
@@ -72,6 +72,14 @@ target_compile_definitions(mbed-core
72
${MBED_CONFIG_DEFINITIONS}
73
)
74
75
+# Add MBED_TEST_MODE for backward compatibility with Greentea testing in CLI1
76
+if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
77
+ target_compile_definitions(${PROJECT_NAME}
78
+ PUBLIC
79
+ MBED_TEST_MODE
80
+ )
81
+endif()
82
+
83
# We need to generate a "response file" to pass to the C preprocessor when we preprocess the linker
84
# script, because of path length limitations on Windows. We set the response file and bind the path
85
# to a global property here. The MBED_TARGET being built queries this global property when it sets
0 commit comments