cmake: toolchain: Minor refactoring

Fixed whitespace such that 'XTOOLS_TOOLCHAIN_PATH' is vertically
aligned.

Also, combined two cmake invocations of 'list' into one.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2018-12-07 12:42:53 +01:00 committed by Anas Nashif
parent e9a49047a0
commit 87858fd4e2
2 changed files with 6 additions and 4 deletions

View file

@ -71,8 +71,10 @@ endforeach()
if("${ZEPHYR_TOOLCHAIN_VARIANT}" STREQUAL "xcc")
LIST(APPEND TOOLCHAIN_LIBS gcc)
LIST(APPEND TOOLCHAIN_LIBS hal)
list(APPEND TOOLCHAIN_LIBS
gcc
hal
)
else()
include(${ZEPHYR_BASE}/cmake/gcc-m-cpu.cmake)

View file

@ -1,6 +1,6 @@
set_ifndef(XTOOLS_TOOLCHAIN_PATH "$ENV{XTOOLS_TOOLCHAIN_PATH}")
set( XTOOLS_TOOLCHAIN_PATH ${XTOOLS_TOOLCHAIN_PATH} CACHE PATH "")
assert( XTOOLS_TOOLCHAIN_PATH "XTOOLS_TOOLCHAIN_PATH is not set")
set( XTOOLS_TOOLCHAIN_PATH ${XTOOLS_TOOLCHAIN_PATH} CACHE PATH "")
assert( XTOOLS_TOOLCHAIN_PATH "XTOOLS_TOOLCHAIN_PATH is not set")
set(TOOLCHAIN_HOME ${XTOOLS_TOOLCHAIN_PATH})