mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-11-23 02:23:45 +00:00
CMake: Override PYTHON environment variable for libunicorn
This commit is contained in:
parent
c2e4666579
commit
33778e4984
1 changed files with 3 additions and 1 deletions
|
@ -240,8 +240,10 @@ if (NOT UNICORN_FOUND)
|
||||||
set(LIBUNICORN_INCLUDE_DIR "${UNICORN_PREFIX}/include" CACHE PATH "Path to Unicorn headers" FORCE)
|
set(LIBUNICORN_INCLUDE_DIR "${UNICORN_PREFIX}/include" CACHE PATH "Path to Unicorn headers" FORCE)
|
||||||
set(UNICORN_DLL_DIR "${UNICORN_PREFIX}/" CACHE PATH "Path to unicorn dynamic library" FORCE)
|
set(UNICORN_DLL_DIR "${UNICORN_PREFIX}/" CACHE PATH "Path to unicorn dynamic library" FORCE)
|
||||||
|
|
||||||
|
find_package(PythonInterp 2.7 REQUIRED)
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${LIBUNICORN_LIBRARY}
|
add_custom_command(OUTPUT ${LIBUNICORN_LIBRARY}
|
||||||
COMMAND ${CMAKE_COMMAND} -E env UNICORN_ARCHS="aarch64" /bin/sh make.sh
|
COMMAND ${CMAKE_COMMAND} -E env UNICORN_ARCHS="aarch64" PYTHON="${PYTHON_EXECUTABLE}" /bin/sh make.sh
|
||||||
WORKING_DIRECTORY ${UNICORN_PREFIX}
|
WORKING_DIRECTORY ${UNICORN_PREFIX}
|
||||||
)
|
)
|
||||||
# ALL makes this custom target build every time
|
# ALL makes this custom target build every time
|
||||||
|
|
Loading…
Reference in a new issue