mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-09 01:25:04 +01:00
Update build-repo.ps1
This commit is contained in:
parent
135909ecac
commit
8f0644cb6f
@ -18,11 +18,11 @@ param([string]$RepoDir = "$PWD")
|
|||||||
function MakeDir { param($Path)
|
function MakeDir { param($Path)
|
||||||
$DirName = (get-item "$Path").Name
|
$DirName = (get-item "$Path").Name
|
||||||
if (test-path "$Path/CMakeLists.txt" -pathType leaf) {
|
if (test-path "$Path/CMakeLists.txt" -pathType leaf) {
|
||||||
"🔨 Building 📂$DirName using CMakeLists.txt to subfolder _MyBuild/..."
|
"🔨 Building 📂$DirName using CMakeLists.txt to subfolder _My_Build/..."
|
||||||
if (-not(test-path "$Path/_MyBuild/" -pathType container)) {
|
if (-not(test-path "$Path/_My_Build/" -pathType container)) {
|
||||||
& mkdir "$Path/_MyBuild/"
|
& mkdir "$Path/_My_Build/"
|
||||||
}
|
}
|
||||||
set-location "$Path/_MyBuild/"
|
set-location "$Path/_My_Build/"
|
||||||
|
|
||||||
& cmake ..
|
& cmake ..
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'cmake ..' has failed" }
|
if ($lastExitCode -ne "0") { throw "Executing 'cmake ..' has failed" }
|
||||||
|
Loading…
Reference in New Issue
Block a user