File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
cellular/tests/UNITTESTS/framework/AT
netsocket/tests/UNITTESTS/netsocket Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ option(BUILD_TESTING "Run unit tests only." OFF)
2222if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
2323 include (CTest)
2424 add_subdirectory (UNITTESTS)
25- # Add MBED_TEST_MODE for backward compatibility with Greentea tests written for use with Mbed CLI 1
26- target_compile_definitions (${PROJECT_NAME}
27- PUBLIC
28- MBED_TEST_MODE
29- )
3025endif ()
3126
3227add_library (mbed-core INTERFACE )
@@ -95,6 +90,14 @@ if(${CMAKE_CROSSCOMPILING})
9590 ${MBED_CONFIG_DEFINITIONS}
9691 )
9792
93+ # Add MBED_TEST_MODE for backward compatibility with Greentea tests written for use with Mbed CLI 1
94+ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
95+ target_compile_definitions (${PROJECT_NAME}
96+ PUBLIC
97+ MBED_TEST_MODE
98+ )
99+ endif ()
100+
98101 # We need to generate a "response file" to pass to the C preprocessor when we preprocess the linker
99102 # script, because of path le ngth limitations on Windows. We set the response file and bind the path
100103 # to a global property here. The MBED_TARGET being built queries this global property when it sets
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ add_subdirectory(at_cellulardevice)
66add_subdirectory (at_cellularinformation)
77add_subdirectory (at_cellularnetwork)
88add_subdirectory (at_cellularsms)
9- add_subdirectory (at_cellularstack)
9+ add_subdirectory (at_cellularstack)
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ add_subdirectory(TCPSocket)
1515add_subdirectory (TLSSocket)
1616add_subdirectory (TLSSocketWrapper)
1717add_subdirectory (UDPSocket)
18- add_subdirectory (WiFiAccessPoint)
18+ add_subdirectory (WiFiAccessPoint)
You can’t perform that action at this time.
0 commit comments