Skip to content

Commit

Permalink
cmake: remove deprecated PYTHON_PREFER setting
Browse files Browse the repository at this point in the history
Since ihttps://github.com/zephyrproject-rtos/zephyr/pull/59811 then
PYTHON_PREFER has been deprecated in favor of Python3_EXECUTABLE as
artifact specifier.

Remove PYTHON_PREFER setting.

This will also remove the CMake deprecation warning being printed during
CMake configure time.

Signed-off-by: Torsten Rasmussen <[email protected]>
  • Loading branch information
tejlmand authored and nordicjm committed Oct 27, 2023
1 parent 5d15ff9 commit a0f2c45
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion share/ncs-package/cmake/NcsConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ if(NOT NO_BOILERPLATE)
set(WEST ${NCS_TOOLCHAIN_WEST} CACHE FILEPATH "NCS Toolchain West")
set(Python3_EXECUTABLE ${NCS_TOOLCHAIN_PYTHON} CACHE FILEPATH "NCS Toolchain Python")
set(PYTHON_EXECUTABLE ${NCS_TOOLCHAIN_PYTHON} CACHE FILEPATH "NCS Toolchain Python")
set(PYTHON_PREFER ${NCS_TOOLCHAIN_PYTHON} CACHE FILEPATH "NCS Toolchain Python")

if(DEFINED NCS_TOOLCHAIN_PROTOC)
set(PROTOC ${CUSTOM_COMMAND_ENV} ${NCS_TOOLCHAIN_PROTOC} CACHE STRING "NCS Toolchain protoc")
Expand Down

0 comments on commit a0f2c45

Please sign in to comment.