Try and fix host tests

pull/15339/head
Jamie Smith 2022-05-29 20:40:42 -07:00 committed by Jay Sridharan
parent bc46f5a3af
commit dd66013d9c
1 changed files with 7 additions and 2 deletions

View File

@ -1,16 +1,21 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# List of all storage libraries available.
add_library(mbed-storage STATIC EXCLUDE_FROM_ALL)
if(${CMAKE_CROSSCOMPILING})
# List of all storage libraries available, also has some source files.
add_library(mbed-storage STATIC EXCLUDE_FROM_ALL)
# The directories below contain optional target libraries
add_subdirectory(blockdevice EXCLUDE_FROM_ALL)
add_subdirectory(filesystem EXCLUDE_FROM_ALL)
add_subdirectory(kvstore EXCLUDE_FROM_ALL)
add_subdirectory(platform EXCLUDE_FROM_ALL)
else()
# List of all storage libraries available.
add_library(mbed-storage INTERFACE)
# Add these subdirectories for the Unit test
add_subdirectory(blockdevice)
add_subdirectory(filesystem)