Skip to content
Commit 90a0dd6d authored by Nazar Palamar's avatar Nazar Palamar Committed by Carles Cufí
Browse files

modules: hal_infineon: fix CMake Warning when build non Infineon device



Problem:
pull/43494 is causing the CMake warning
No SOURCES given to Zephyr library: modules_hal_infineon

modules_hal_infineon library was defined even if none of the
below subdirectories is added; so, when not building for
Infineon/Cypress devices, the source list for this library
will be empty.

Fix:
Added 'zephyr_library_named(modules_hal_infineon)' under condition
'if(CONFIG_HAS_XMCLIB OR CONFIG_SOC_FAMILY_PSOC6)'

Signed-off-by: default avatarNazar Palamar <nazar.palamar@infineon.com>
parent 0a497fcd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment