]> granicus.if.org Git - icinga2/commitdiff
tools/win32: Invalidate CMake cache on build
authorMarkus Frosch <markus.frosch@icinga.com>
Tue, 18 Dec 2018 10:52:06 +0000 (11:52 +0100)
committerMarkus Frosch <markus.frosch@icinga.com>
Tue, 18 Dec 2018 10:52:06 +0000 (11:52 +0100)
tools/win32/configure.ps1

index 1f40875ce5474b1a794d2e6148f151444352190d..57fc031886424ce103234712411d462b6c96aa94 100644 (file)
@@ -53,6 +53,11 @@ cd "$env:ICINGA2_BUILDPATH"
 
 #-DCMAKE_INSTALL_PREFIX="C:\Program Files\Icinga2" `
 
+# Invalidate cache in case something in the build environment changed
+if (Test-Path CMakeCache.txt) {
+  Remove-Item -Force CMakeCache.txt | Out-Null
+}
+
 & cmake.exe "$sourcePath" `
   -DCMAKE_BUILD_TYPE=RelWithDebInfo `
   -G $env:CMAKE_GENERATOR -DCPACK_GENERATOR=WIX `