Skip to content

Commit

Permalink
build: find python 2.7 interpreter first
Browse files Browse the repository at this point in the history
  • Loading branch information
bamiaux committed Apr 9, 2018
1 parent f54ff68 commit a631550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/yatools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ endif()
include(${ya_dir}/build/yadeps.cmake)

# IDA works with Python 2.7, which is mandatory to build swig tools
find_package(PythonLibs 2.7 REQUIRED)
find_package(PythonInterp 2.7 REQUIRED)
find_package(PythonLibs 2.7 REQUIRED)

# yatools helpers
function(setup_yatools target)
Expand Down Expand Up @@ -237,7 +238,6 @@ add_yatools_py(32)
add_yatools_py(64)

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

0 comments on commit a631550

Please sign in to comment.