Skip to content

Commit 974ae07

Browse files
committed
[CMAKE] Change \ to / in paths for cmake
Newer CMake versions treat "\" as an escape character.
1 parent 1d5d93f commit 974ae07

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎configure.cmd‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if /I "%1" == "/?" (
2020

2121
REM Get the source root directory
2222
set REACTOS_SOURCE_DIR=%~dp0
23+
set REACTOS_SOURCE_DIR=%REACTOS_SOURCE_DIR:\=/%
2324

2425
REM Ensure there's no spaces in the source path
2526
echo %REACTOS_SOURCE_DIR%| find " " > NUL
@@ -169,7 +170,7 @@ if "%VS_SOLUTION%" == "1" (
169170
set REACTOS_OUTPUT_PATH=%REACTOS_OUTPUT_PATH%-sln
170171
)
171172

172-
if "%REACTOS_SOURCE_DIR%" == "%CD%\" (
173+
if "%REACTOS_SOURCE_DIR%" == "%CD:\=/%/" (
173174
set CD_SAME_AS_SOURCE=1
174175
echo Creating directories in %REACTOS_OUTPUT_PATH%
175176

0 commit comments

Comments
 (0)