Skip to content

CMake: Fix Cypress MCU_PSOC6_M4 build #14232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-cy_psoc6csp_rtos INTERFACE)
if("CY_RTOS_AWARE" IN_LIST MBED_CONFIG_DEFINITIONS)
if("RTX" IN_LIST MBED_TARGET_LABELS)
target_include_directories(mbed-core
INTERFACE
include/COMPONENT_RTX
)
target_sources(mbed-core
INTERFACE
source/COMPONENT_RTX/cyabs_rtos_rtxv5.c
)
endif()

if("RTX" IN_LIST MBED_TARGET_LABELS)
target_include_directories(mbed-cy_psoc6csp_rtos
target_include_directories(mbed-core
INTERFACE
include/COMPONENT_RTX
include
)
target_sources(mbed-cy_psoc6csp_rtos

target_sources(mbed-core
INTERFACE
source/COMPONENT_RTX/cyabs_rtos_rtxv5.c
source/cy_worker_thread.c
)
endif()

target_include_directories(mbed-cy_psoc6csp_rtos
INTERFACE
include
)

target_sources(mbed-cy_psoc6csp_rtos
INTERFACE
source/cy_worker_thread.c
)