build: Support cmake -DPYTHON=python3 (#4667)

This will help debian packaging of iotjs

JerryScript-DCO-1.0-Signed-off-by: Philippe Coval rzr@users.sf.net
This commit is contained in:
Philippe Coval
2021-05-17 11:37:09 +02:00
committed by GitHub
parent 5180680030
commit a67f198134
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -488,7 +488,7 @@ if(ENABLE_AMALGAM)
set(AMALGAM_CONFIG_H "${CMAKE_BINARY_DIR}/amalgam/jerryscript-config.h")
add_custom_command(OUTPUT ${AMALGAM_CORE_C} ${AMALGAM_CORE_H}
COMMAND python ${CMAKE_SOURCE_DIR}/tools/amalgam.py
COMMAND ${PYTHON} ${CMAKE_SOURCE_DIR}/tools/amalgam.py
--jerry-core
--output-dir ${CMAKE_BINARY_DIR}/amalgam
DEPENDS ${SOURCE_CORE_FILES}