Merge pull request #15073 from rwalton-arm/fix_greentea_ctest

CMake: QSPIFBlockDevice: Guard unit test directory
pull/15078/head
Jaeden Amero 2021-09-15 17:41:54 +01:00 committed by GitHub
commit 8698a5516c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -13,5 +13,7 @@ target_sources(mbed-storage-qspif
)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
add_subdirectory(UNITTESTS)
if (NOT BUILD_GREENTEA_TESTS)
add_subdirectory(UNITTESTS)
endif()
endif()