summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-01-16 20:05:05 +0100
committerspycrab <spycrab@users.noreply.github.com>2018-01-16 20:05:05 +0100
commit33778e49841d2ddb97a7efb69fe632fe384e647d (patch)
treec4e3fbd4486920f53a6c60237599967bc4826a96
parentUpdate README.md to include AppVeyor build status. (diff)
downloadyuzu-33778e49841d2ddb97a7efb69fe632fe384e647d.tar
yuzu-33778e49841d2ddb97a7efb69fe632fe384e647d.tar.gz
yuzu-33778e49841d2ddb97a7efb69fe632fe384e647d.tar.bz2
yuzu-33778e49841d2ddb97a7efb69fe632fe384e647d.tar.lz
yuzu-33778e49841d2ddb97a7efb69fe632fe384e647d.tar.xz
yuzu-33778e49841d2ddb97a7efb69fe632fe384e647d.tar.zst
yuzu-33778e49841d2ddb97a7efb69fe632fe384e647d.zip
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ec9467e5..d814bb74f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -240,8 +240,10 @@ if (NOT UNICORN_FOUND)
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)
+ find_package(PythonInterp 2.7 REQUIRED)
+
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}
)
# ALL makes this custom target build every time