Skip to content

Commit 61c1fc4

Browse files
[release/8.0-staging] Strip trailing slash from source dir for cmake4 (#114906)
Co-authored-by: Adeel Mujahid <[email protected]>
1 parent f1476bb commit 61c1fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/corehost/build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ setlocal
55
:: Initialize the args that will be passed to cmake
66
set "__sourceDir=%~dp0"
77
:: remove trailing slash
8-
if %__sourceDir:~-1%==\ set "__ProjectDir=%__sourceDir:~0,-1%"
8+
if "%__sourceDir:~-1%"=="\" set "__sourceDir=%__sourceDir:~0,-1%"
99

1010
set "__RepoRootDir=%__sourceDir%\..\..\.."
1111
:: normalize

0 commit comments

Comments
 (0)