cmake: remove _if_kconfig() functions
This set of functions seem to be there just because of historical reasons, stemming from Kbuild. They are non-obvious and prone to errors, so remove them in favor of the `_ifdef()` ones with an explicit `CONFIG_` condition. Script used: git grep -l _if_kconfig | xargs sed -E -i "s/_if_kconfig\(\s*(\w*)/_ifdef(CONFIG_\U\1\E \1/g" Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
dc48999ee1
commit
244f826e3c
29 changed files with 129 additions and 161 deletions
|
@ -20,5 +20,5 @@ add_subdirectory(power)
|
|||
add_subdirectory(stats)
|
||||
add_subdirectory(testsuite)
|
||||
add_subdirectory(tracing)
|
||||
add_subdirectory_if_kconfig(jwt)
|
||||
add_subdirectory_ifdef(CONFIG_JWT jwt)
|
||||
add_subdirectory(canbus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue