diff options
author | Adam Sampson <ats@offog.org> | 2022-08-21 17:47:35 +0100 |
---|---|---|
committer | Adam Sampson <ats@offog.org> | 2022-08-21 17:48:01 +0100 |
commit | 19160f10ae8916f9bb22166ce38186550c56b6d5 (patch) | |
tree | 3e1c5cd75b7d260d477ea6f04d4ce15a8556a061 /machxo2 | |
parent | 05167fcb8bf9cd85ea605331ca36cac6f25ce67f (diff) | |
download | nextpnr-19160f10ae8916f9bb22166ce38186550c56b6d5.tar.gz nextpnr-19160f10ae8916f9bb22166ce38186550c56b6d5.tar.bz2 nextpnr-19160f10ae8916f9bb22166ce38186550c56b6d5.zip |
Use CMake's Python3 rather than PythonInterp in subdirs
Diffstat (limited to 'machxo2')
-rw-r--r-- | machxo2/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/machxo2/CMakeLists.txt b/machxo2/CMakeLists.txt index ab4eded6..f772f801 100644 --- a/machxo2/CMakeLists.txt +++ b/machxo2/CMakeLists.txt @@ -10,7 +10,7 @@ message(STATUS "Enabled MachXO2 devices: ${MACHXO2_DEVICES}") if(DEFINED MACHXO2_CHIPDB) add_custom_target(chipdb-machxo2-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 @@ -58,7 +58,7 @@ else() set(device_bba chipdb/chipdb-${device}.bba) add_custom_command( OUTPUT ${device_bba} - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/facade_import.py + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/facade_import.py -L ${TRELLIS_LIBDIR} -L ${TRELLIS_DATADIR}/util/common -L ${TRELLIS_DATADIR}/timing/util |