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)
22
22
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING )
23
23
include (CTest )
24
24
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
- )
30
25
endif ()
31
26
32
27
add_library (mbed-core INTERFACE )
@@ -95,6 +90,14 @@ if(${CMAKE_CROSSCOMPILING})
95
90
${MBED_CONFIG_DEFINITIONS}
96
91
)
97
92
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
+
98
101
# We need to generate a "response file" to pass to the C preprocessor when we preprocess the linker
99
102
# script, because of path le ngth limitations on Windows. We set the response file and bind the path
100
103
# 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)
6
6
add_subdirectory (at_cellularinformation )
7
7
add_subdirectory (at_cellularnetwork )
8
8
add_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)
15
15
add_subdirectory (TLSSocket )
16
16
add_subdirectory (TLSSocketWrapper )
17
17
add_subdirectory (UDPSocket )
18
- add_subdirectory (WiFiAccessPoint )
18
+ add_subdirectory (WiFiAccessPoint )
You can’t perform that action at this time.
0 commit comments