mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
e8614b341b
commit
b947ee339a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue