cmake: Abort early if Python3 is not found

When Python3 is not found the build system will warn the user and then
continue. Python3 is required and continuing can only confuse the user
with new off-topic error messages.

This patch denotes Python3 as required to resolve this.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2018-11-05 12:35:53 +01:00 committed by Anas Nashif
commit 9296fdc45e

View file

@ -96,7 +96,10 @@ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${AUTOCONF_H})
include(${ZEPHYR_BASE}/cmake/extensions.cmake)
find_package(PythonInterp 3.4)
find_package(
PythonInterp 3.4
REQUIRED
)
include(${ZEPHYR_BASE}/cmake/ccache.cmake)