CMake: Fix dirs and sources visibility for mbed-emac CMake target

The mbed-emac CMake target is an interface library and as such its
include dirs and sources have to be have the INTERFACE visibility.
pull/14021/head
Harrison Mutai 2020-12-10 10:29:02 +00:00
parent e8614b341b
commit b947ee339a
1 changed files with 2 additions and 3 deletions

View File

@ -2,17 +2,16 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-emac target_include_directories(mbed-emac
PUBLIC INTERFACE
. .
r_ether_rza2 r_ether_rza2
r_ether_rza2/src/phy r_ether_rza2/src/phy
r_ether_rza2/src/targets/TARGET_GR_MANGO r_ether_rza2/src/targets/TARGET_GR_MANGO
PRIVATE
r_ether_rza2/src r_ether_rza2/src
) )
target_sources(mbed-emac target_sources(mbed-emac
PRIVATE INTERFACE
rza2_emac.cpp rza2_emac.cpp
r_ether_rza2/src/r_ether_rza2.c r_ether_rza2/src/r_ether_rza2.c
r_ether_rza2/src/phy/phy.c r_ether_rza2/src/phy/phy.c