]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Bump to 1.3.8 and fix run_command function
authorLzu Tao <taolzu@gmail.com>
Wed, 28 Nov 2018 04:57:53 +0000 (11:57 +0700)
committerLzu Tao <taolzu@gmail.com>
Sat, 1 Dec 2018 16:18:59 +0000 (23:18 +0700)
The run_command is run from an unspecified directory. Therefore we cannot assume
which directory it is running our command.

contrib/meson/meson.build

index 48f8d570d84441236a5a66087a3b155a53d6b2ce..bd7eeff730ca8b217250c05c1dbedf55f3ac89e9 100644 (file)
@@ -14,7 +14,7 @@ project('zstd',
     default_options : ['c_std=c99',
         'cpp_std=c++11',
         'buildtype=release'],
-    version: '1.3.7',
+    version: '1.3.8',
     # for install_man
     meson_version: '>=0.47.0')
 
@@ -63,7 +63,7 @@ CopyFile_py = files('CopyFile.py')
 # Getting project version from zstd.h
 # =============================================================================
 
-zstd_h_file = join_paths(library_dir, 'zstd.h')
+zstd_h_file = join_paths(meson.current_source_dir(), library_dir, 'zstd.h')
 r = run_command(python3, GetZstdLibraryVersion_py, zstd_h_file)
 if r.returncode() == 0
     output = r.stdout().strip()