zephyr/cmake
Torsten Rasmussen b5a612d7bc cmake: now using find_package(python3) from CMake to located python3
Fixes: #23922, #24252, #11103

This commit switches to use the find_package(Python3) introduced with
CMake 3.12.

This removes the need for a Zephyr backport of Python detection module.

The search order for Python3 is following CMake search order and can be
controlled through CMake flags (See CMake documentation).

Default it will use the Python version found in PATH.
If multiple Python3 versions are found in PATH, the newest version will
be selected (Can be controlled using `Python3_FIND_STRATEGY`)

Using find_package(Python3) also ensures Python2.7 will never be
selected, issue #11103, which was re-introduced in Zephyr.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-04-13 15:34:35 -04:00
..
app cmake: board alias message when hiding existing board 2020-04-09 14:38:36 +02:00
bintools
compiler RISCV compiler: Set mabi and march via Kconfig options 2020-04-06 21:54:07 -04:00
emu cmake: qemu: Support delayed expansion of QEMU_KERNEL_OPTION 2020-04-02 09:22:38 +02:00
flash cmake: fix bug in generated runners.yaml 2020-04-09 14:04:27 +02:00
ide
linker/ld cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
makefile_exports
reports
toolchain
usage
util
boards.cmake scripts: west-commands: Updates needed when removing ZEPHYR_BASE env 2020-03-27 16:23:46 +01:00
ccache.cmake
cfb.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
dts.cmake cmake: re-run if gen_defines changes 2020-04-13 08:22:46 -05:00
extensions.cmake boards: nrf52_pca10040: Rename to nrf52dk_nrf52832 2020-04-06 13:09:07 +02:00
extra_flags.cmake
gcc-m-cpu.cmake
generic_toolchain.cmake
git.cmake
hex.cmake
host-tools.cmake cmake: propagating zephyr base to west 2020-03-27 16:23:46 +01:00
kconfig.cmake dts: Remove conf file generation support 2020-04-12 09:49:16 -05:00
kobj.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
pristine.cmake
python.cmake cmake: now using find_package(python3) from CMake to located python3 2020-04-13 15:34:35 -04:00
target_toolchain.cmake
version.cmake
zephyr_module.cmake cmake: propagating zephyr base to west 2020-03-27 16:23:46 +01:00