cmake: cleanup old west version support
When west is used by Zephyr, then minimum required version is 0.14.0. Therefore cleanup west.cmake by removing code which are created to support west versions =< 0.7.x. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
f69d83aedf
commit
5e4710ce68
|
@ -72,21 +72,9 @@ else()
|
||||||
${PYTHON_EXECUTABLE_OUT_OF_SYNC}\n")
|
${PYTHON_EXECUTABLE_OUT_OF_SYNC}\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set WEST to a COMMAND prefix as if it were a find_program()
|
# Set WEST to a COMMAND prefix as if it were a find_program() result, and
|
||||||
# result.
|
# cache the value so the Zephyr Eclipse plugin knows how to invoke West.
|
||||||
#
|
set(WEST ${PYTHON_EXECUTABLE} -m west CACHE INTERNAL "West")
|
||||||
# From west 0.8 forward, you can run 'python -m west' to run
|
|
||||||
# the command line application.
|
|
||||||
set(WEST_MODULE west)
|
|
||||||
if(${west_version} VERSION_LESS 0.8)
|
|
||||||
# In west 0.7.x, this wasn't supported yet, but it happens to be
|
|
||||||
# possible to run 'python -m west.app.main'.
|
|
||||||
string(APPEND WEST_MODULE .app.main)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Need to cache this so the Zephyr Eclipse plugin knows
|
|
||||||
# how to invoke West.
|
|
||||||
set(WEST ${PYTHON_EXECUTABLE} -m ${WEST_MODULE} CACHE INTERNAL "West")
|
|
||||||
|
|
||||||
# Print information about the west module we're relying on. This
|
# Print information about the west module we're relying on. This
|
||||||
# will still work even after output is one line.
|
# will still work even after output is one line.
|
||||||
|
|
Loading…
Reference in a new issue