Skip to content

Commit a631550

Browse files
committed
build: find python 2.7 interpreter first
1 parent f54ff68 commit a631550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/yatools.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ endif()
3737
include(${ya_dir}/build/yadeps.cmake)
3838

3939
# IDA works with Python 2.7, which is mandatory to build swig tools
40-
find_package(PythonLibs 2.7 REQUIRED)
40+
find_package(PythonInterp 2.7 REQUIRED)
41+
find_package(PythonLibs 2.7 REQUIRED)
4142

4243
# yatools helpers
4344
function(setup_yatools target)
@@ -237,7 +238,6 @@ add_yatools_py(32)
237238
add_yatools_py(64)
238239

239240
# testdata
240-
find_package(PythonInterp 2.7 REQUIRED)
241241
function(make_testdata target bin src idaq)
242242
set(output "${root_dir}/testdata/${target}/database/database.yadb")
243243
set(no_pdb "--no-pdb")

0 commit comments

Comments
 (0)