boost: make python2 optional

pull/6843/head
Daniel Mensinger 5 years ago
parent 570adf0900
commit 26a475d1b5
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 4
      test cases/frameworks/1 boost/meson.build

@ -22,9 +22,9 @@ notfound = dependency('boost', static: s, modules : ['this_should_not_exist_o
assert(not notfound.found())
pymod = import('python')
python2 = pymod.find_installation('python2', required: host_machine.system() == 'linux', disabler: true)
python2 = pymod.find_installation('python2', required: false , disabler: true)
python3 = pymod.find_installation('python3', required: host_machine.system() == 'linux', disabler: true)
python2dep = python2.dependency(required: host_machine.system() == 'linux', embed: true, disabler: true)
python2dep = python2.dependency(required: false , embed: true, disabler: true)
python3dep = python3.dependency(required: host_machine.system() == 'linux', embed: true, disabler: true)
# compile python 2/3 modules only if we found a corresponding python version

Loading…
Cancel
Save