From 19160f10ae8916f9bb22166ce38186550c56b6d5 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sun, 21 Aug 2022 17:47:35 +0100 Subject: Use CMake's Python3 rather than PythonInterp in subdirs --- ice40/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ice40') diff --git a/ice40/CMakeLists.txt b/ice40/CMakeLists.txt index 7a878bf4..3bdfa26d 100644 --- a/ice40/CMakeLists.txt +++ b/ice40/CMakeLists.txt @@ -9,7 +9,7 @@ message(STATUS "Enabled iCE40 devices: ${ICE40_DEVICES}") if(DEFINED ICE40_CHIPDB) add_custom_target(chipdb-ice40-bbas ALL) else() - find_package(PythonInterp 3.5 REQUIRED) + find_package(Python3 3.5 REQUIRED COMPONENTS Interpreter) # shared among all families set(SERIALIZE_CHIPDBS TRUE CACHE BOOL @@ -57,7 +57,7 @@ else() set(device_bba chipdb/chipdb-${device}.bba) add_custom_command( OUTPUT ${device_bba} - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/chipdb.py + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/chipdb.py -p ${CMAKE_CURRENT_SOURCE_DIR}/constids.inc -g ${CMAKE_CURRENT_SOURCE_DIR}/gfx.h ${timing_opts} -- cgit v1.2.3