Add an explicit -DPYTHON_EXECUTABLE=x specifier when invoking python to locate it to CMake. Closes https://github.com/kripken/emscripten/issues/3388 .

This commit is contained in:
Jukka Jylänki 2015-04-23 10:58:47 +03:00
Родитель 865b2206db
Коммит b03859dcdb
1 изменённых файлов: 1 добавлений и 1 удалений

2
emsdk
Просмотреть файл

@ -514,7 +514,7 @@ def cmake_configure(generator, build_root, src_root, build_type, extra_cmake_arg
try:
if generator: generator = ['-G', generator]
else: generator = []
cmdline = ['cmake'] + generator + ['-DCMAKE_BUILD_TYPE='+build_type] + extra_cmake_args + [src_root]
cmdline = ['cmake'] + generator + ['-DCMAKE_BUILD_TYPE='+build_type, '-DPYTHON_EXECUTABLE='+sys.executable] + extra_cmake_args + [src_root]
print('Running CMake: ' + str(cmdline))
ret = subprocess.check_call(cmdline, cwd=build_root)
if ret != 0: