Commit b468e9f5 authored by Jan Kiene's avatar Jan Kiene
Browse files

loop over files instead of using wildcard twice

parent 8ed3f02f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ stages:

.activate-WX-windows: &activate-WX-windows
  - (Get-Content -Path "CMakeLists.txt") -replace '# \(add_compile_options\("\/WX"\)\)', '$1' | Set-Content -Path "CMakeLists.txt"
  - (Get-Content -Path "Workspace_msvc/*.vcxproj") -replace '<TreatWarningAsError>false', '<TreatWarningAsError>true' | Set-Content -Path "Workspace_msvc/*.vcxproj"
  - Get-ChildItem -Path "Workspace_msvc" -Filter "*.vcxproj" | ForEach-Object { (Get-Content -Path $_.FullName) -replace '<TreatWarningAsError>false', '<TreatWarningAsError>true' | Set-Content -Path $_.FullName }

# ---------------------------------------------------------------
# Job templates