From 6d0e83be06bb21beaf8c4b9cca6ca70eff1cc650 Mon Sep 17 00:00:00 2001 From: Adeel Mujahid <3840695+am11@users.noreply.github.com> Date: Thu, 17 Apr 2025 14:32:47 +0300 Subject: [PATCH 1/2] Strip trailing slash from source dir for cmake4 --- src/native/corehost/build.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/native/corehost/build.cmd b/src/native/corehost/build.cmd index e5f535467ad38b..9d7cfae4312436 100644 --- a/src/native/corehost/build.cmd +++ b/src/native/corehost/build.cmd @@ -5,7 +5,8 @@ setlocal :: Initialize the args that will be passed to cmake set "__sourceDir=%~dp0" :: remove trailing slash -if %__sourceDir:~-1%==\ set "__ProjectDir=%__sourceDir:~0,-1%" +if "%__sourceDir:~-1%"=="\" set "__sourceDir=%__sourceDir:~0,-1%" +set "__ProjectDir=%__sourceDir%" set "__RepoRootDir=%__sourceDir%\..\..\.." :: normalize From 9922d139a4dd542e03eb7301f5ff274283048214 Mon Sep 17 00:00:00 2001 From: Adeel Mujahid <3840695+am11@users.noreply.github.com> Date: Thu, 17 Apr 2025 17:13:32 +0300 Subject: [PATCH 2/2] feedback --- src/native/corehost/build.cmd | 1 - 1 file changed, 1 deletion(-) diff --git a/src/native/corehost/build.cmd b/src/native/corehost/build.cmd index 9d7cfae4312436..ff40b5048a66be 100644 --- a/src/native/corehost/build.cmd +++ b/src/native/corehost/build.cmd @@ -6,7 +6,6 @@ setlocal set "__sourceDir=%~dp0" :: remove trailing slash if "%__sourceDir:~-1%"=="\" set "__sourceDir=%__sourceDir:~0,-1%" -set "__ProjectDir=%__sourceDir%" set "__RepoRootDir=%__sourceDir%\..\..\.." :: normalize