Skip to content

Commit 8698a55

Browse files
authored
Merge pull request #15073 from rwalton-arm/fix_greentea_ctest
CMake: QSPIFBlockDevice: Guard unit test directory
2 parents 64a3419 + fca7323 commit 8698a55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/blockdevice/COMPONENT_QSPIF/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ target_sources(mbed-storage-qspif
1313
)
1414

1515
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
16-
add_subdirectory(UNITTESTS)
16+
if (NOT BUILD_GREENTEA_TESTS)
17+
add_subdirectory(UNITTESTS)
18+
endif()
1719
endif()

0 commit comments

Comments
 (0)