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:
+4
-1
@@ -15,8 +15,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.12)
|
||||
project (Jerry C)
|
||||
|
||||
if(NOT DEFINED PYTHON)
|
||||
set(PYTHON "python")
|
||||
endif()
|
||||
# Determining version
|
||||
execute_process(COMMAND python ${CMAKE_SOURCE_DIR}/tools/version.py
|
||||
execute_process(COMMAND ${PYTHON} ${CMAKE_SOURCE_DIR}/tools/version.py
|
||||
OUTPUT_VARIABLE JERRY_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user