Minor fix for meson build

Use files function instead of constructing path with meson.current_source_dir()
This commit is contained in:
Lzu Tao
2018-12-01 23:18:59 +07:00
parent 386c9ab58a
commit f727808731
4 changed files with 10 additions and 6 deletions
+8 -1
View File
@@ -52,10 +52,17 @@ enable_zlib = get_option('zlib_support')
enable_lzma = get_option('lzma_support')
# =============================================================================
# Getting project version from zstd.h
# Helper scripts for Meson
# =============================================================================
GetZstdLibraryVersion_py = files('GetZstdLibraryVersion.py')
CreateSymlink_py = files('CreateSymlink.py')
CopyFile_py = files('CopyFile.py')
# =============================================================================
# Getting project version from zstd.h
# =============================================================================
zstd_h_file = join_paths(library_dir, 'zstd.h')
r = run_command(python3, GetZstdLibraryVersion_py, zstd_h_file)
if r.returncode() == 0