Skip to content

Commit 8387937

Browse files
committed
call cmake directly
1 parent 6159b93 commit 8387937

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/10N_50651.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ $vsPath = vswhere -all -products * -requires Microsoft.Component.MSBuild -proper
22
Import-Module "${vsPath}\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll"
33
Enter-VsDevShell -VsInstallPath "$vsPath" -SkipAutomaticLocation -Arch amd64
44

5-
$CMAKE="${vsPath}\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin\\cmake.exe"
5+
# $CMAKE="${vsPath}\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin\\cmake.exe"
66
# rm -r -Force ./build
7-
&${CMAKE} -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S . -B ./build -G "Visual Studio 17 2022" -T host=x64 -A x64
8-
&${CMAKE} --build ./build --config Release --target ALL_BUILD --parallel
7+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S . -B ./build -G "Visual Studio 17 2022" -T host=x64 -A x64
8+
cmake --build ./build --config Release --target ALL_BUILD --parallel
99

1010
# cmake --preset Release
1111
# cmake --build --preset Release --parallel

0 commit comments

Comments
 (0)