Skip to content

Commit 3991e8a

Browse files
authored
Merge pull request #4459 from Margen67/premake
Remove need for trailing forward slash in dir
2 parents e128976 + 1e1db47 commit 3991e8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/premake/zstd.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-- Basic usage: project_zstd(ZSTD_DIR)
33

44
function project_zstd(dir, compression, decompression, deprecated, dictbuilder, legacy)
5+
if string.sub(dir, -1, 1) ~= '/' then dir = dir .. '/' end
56
if compression == nil then compression = true end
67
if decompression == nil then decompression = true end
78
if deprecated == nil then deprecated = false end

0 commit comments

Comments
 (0)