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:
Родитель
865b2206db
Коммит
b03859dcdb
2
emsdk
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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче