File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ option(BN_ALLOW_STUBS "Allow generating and linking against stubs if a Binary Ni
99option (BN_REF_COUNT_DEBUG "Add extra debugging checks for RefCountObject leaks" OFF )
1010mark_as_advanced (BN_REF_COUNT_DEBUG )
1111
12+ find_package (Python3 3.10 COMPONENTS Interpreter REQUIRED )
13+
1214if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
1315 if (MSVC )
1416 message (FATAL_ERROR "Binary Ninja is 64-bit only (try -G \" ${CMAKE_GENERATOR } Win64\" )" )
Original file line number Diff line number Diff line change @@ -2,17 +2,19 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22
33project (arch_x86)
44
5+ find_package (Python3 COMPONENTS Interpreter REQUIRED )
6+
57OPTION (BUILD_SHARED_LIBS "Build shared libraries" OFF )
68OPTION (YASM_BUILD_TESTS "Enable building of tests" OFF )
79add_subdirectory (yasm )
810
911set (XED_CONFIGURE_ARGS --no -encoder just-gen)
1012if (WIN32 )
1113 execute_process (COMMAND ${CMAKE_COMMAND } -E env OS=Windows_NT PYTHONPATH=${PROJECT_SOURCE_DIR}/mbuild
12- py -3 ${PROJECT_SOURCE_DIR } /xed/mfile.py ${XED_CONFIGURE_ARGS}
14+ ${Python3_EXECUTABLE} ${PROJECT_SOURCE_DIR } /xed/mfile.py ${XED_CONFIGURE_ARGS}
1315 WORKING_DIRECTORY ${PROJECT_BINARY_DIR } )
1416else ()
15- execute_process (COMMAND python3 ${PROJECT_SOURCE_DIR } /xed/mfile.py ${XED_CONFIGURE_ARGS}
17+ execute_process (COMMAND ${Python3_EXECUTABLE} ${PROJECT_SOURCE_DIR } /xed/mfile.py ${XED_CONFIGURE_ARGS}
1618 WORKING_DIRECTORY ${PROJECT_BINARY_DIR } )
1719endif ()
1820
You can’t perform that action at this time.
0 commit comments