lib: libc: Clean up CMake script to use add_subdirectory_ifdef
This commit cleans up the top `CMakeLists.txt` for the libc directory to use `add_subdirectory_ifdef` in order to make the code more readable. Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
This commit is contained in:
parent
2c162449eb
commit
c3db8dc9e7
|
@ -1,13 +1,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(CONFIG_NEWLIB_LIBC)
|
||||
add_subdirectory(newlib)
|
||||
elseif(CONFIG_ARCMWDT_LIBC)
|
||||
add_subdirectory(arcmwdt)
|
||||
elseif(CONFIG_MINIMAL_LIBC)
|
||||
add_subdirectory(minimal)
|
||||
elseif(CONFIG_ARMCLANG_STD_LIBC)
|
||||
add_subdirectory(armstdc)
|
||||
elseif(CONFIG_PICOLIBC)
|
||||
add_subdirectory(picolibc)
|
||||
endif()
|
||||
add_subdirectory_ifdef(CONFIG_ARCMWDT_LIBC arcmwdt)
|
||||
add_subdirectory_ifdef(CONFIG_ARMCLANG_STD_LIBC armstdc)
|
||||
add_subdirectory_ifdef(CONFIG_MINIMAL_LIBC minimal)
|
||||
add_subdirectory_ifdef(CONFIG_NEWLIB_LIBC newlib)
|
||||
add_subdirectory_ifdef(CONFIG_PICOLIBC picolibc)
|
||||
|
|
Loading…
Reference in a new issue