You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
832 B

  1. --- a/contrib/meson/meson.build
  2. +++ b/contrib/meson/meson.build
  3. @@ -16,7 +16,6 @@ project('lz4', ['c'],
  4. cc = meson.get_compiler('c')
  5. pkgconfig = import('pkgconfig')
  6. -python3 = import('python').find_installation()
  7. c_std = get_option('c_std')
  8. default_library = get_option('default_library')
  9. @@ -35,8 +34,8 @@ compiler_msvc = 'msvc'
  10. lz4_version = meson.project_version()
  11. lz4_h_file = join_paths(meson.current_source_dir(), '../../lib/lz4.h')
  12. -GetLz4LibraryVersion_py = files('GetLz4LibraryVersion.py')
  13. -r = run_command(python3, GetLz4LibraryVersion_py, lz4_h_file)
  14. +GetLz4LibraryVersion_py = find_program('GetLz4LibraryVersion.py', native : true)
  15. +r = run_command(GetLz4LibraryVersion_py, lz4_h_file)
  16. if r.returncode() == 0
  17. lz4_version = r.stdout().strip()
  18. message('Project version is now: @0@'.format(lz4_version))