aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/family.cmake
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-08 19:27:42 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-08 19:27:42 +0200
commit4c06b9be1d2420100d0c3b2533ecebeece183187 (patch)
tree7625bf8f2b9e1b265d8c1474b14aea7f1075d390 /ice40/family.cmake
parent9704ebd079fd7d8c94af97a49ef9f8f8c6ae2871 (diff)
downloadnextpnr-4c06b9be1d2420100d0c3b2533ecebeece183187.tar.gz
nextpnr-4c06b9be1d2420100d0c3b2533ecebeece183187.tar.bz2
nextpnr-4c06b9be1d2420100d0c3b2533ecebeece183187.zip
Python executable filename could be different
Diffstat (limited to 'ice40/family.cmake')
-rw-r--r--ice40/family.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/family.cmake b/ice40/family.cmake
index f7a27ffb..e6cefecb 100644
--- a/ice40/family.cmake
+++ b/ice40/family.cmake
@@ -22,7 +22,7 @@ if (MSVC)
set(DEV_CC_DB ${CMAKE_CURRENT_SOURCE_DIR}/ice40/chipdbs/chipdb-${dev}.bin)
set(DEV_PORTS_INC ${CMAKE_CURRENT_SOURCE_DIR}/ice40/portpins.inc)
add_custom_command(OUTPUT ${DEV_CC_DB}
- COMMAND python3 ${DB_PY} -b -p ${DEV_PORTS_INC} ${DEV_TXT_DB} > ${DEV_CC_DB}
+ COMMAND ${PYTHON_EXECUTABLE} ${DB_PY} -b -p ${DEV_PORTS_INC} ${DEV_TXT_DB} > ${DEV_CC_DB}
DEPENDS ${DEV_TXT_DB} ${DB_PY}
)
target_sources(ice40_chipdb PRIVATE ${DEV_CC_DB})
@@ -38,7 +38,7 @@ else()
set(DEV_CC_DB ${CMAKE_CURRENT_SOURCE_DIR}/ice40/chipdbs/chipdb-${dev}.cc)
set(DEV_PORTS_INC ${CMAKE_CURRENT_SOURCE_DIR}/ice40/portpins.inc)
add_custom_command(OUTPUT ${DEV_CC_DB}
- COMMAND python3 ${DB_PY} -c -p ${DEV_PORTS_INC} ${DEV_TXT_DB} > ${DEV_CC_DB}.new
+ COMMAND ${PYTHON_EXECUTABLE} ${DB_PY} -c -p ${DEV_PORTS_INC} ${DEV_TXT_DB} > ${DEV_CC_DB}.new
COMMAND mv ${DEV_CC_DB}.new ${DEV_CC_DB}
DEPENDS ${DEV_TXT_DB} ${DB_PY}
)