Skip to content

Commit f096b3b

Browse files
committed
Fix missing newline
1 parent 91051cb commit f096b3b

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CMakeLists.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ option(BUILD_TESTING "Run unit tests only." OFF)
2222
if(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-
)
3025
endif()
3126

3227
add_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

connectivity/cellular/tests/UNITTESTS/framework/AT/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ add_subdirectory(at_cellulardevice)
66
add_subdirectory(at_cellularinformation)
77
add_subdirectory(at_cellularnetwork)
88
add_subdirectory(at_cellularsms)
9-
add_subdirectory(at_cellularstack)
9+
add_subdirectory(at_cellularstack)

connectivity/netsocket/tests/UNITTESTS/netsocket/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ add_subdirectory(TCPSocket)
1515
add_subdirectory(TLSSocket)
1616
add_subdirectory(TLSSocketWrapper)
1717
add_subdirectory(UDPSocket)
18-
add_subdirectory(WiFiAccessPoint)
18+
add_subdirectory(WiFiAccessPoint)

0 commit comments

Comments
 (0)