From: Markus Frosch Date: Tue, 18 Dec 2018 10:52:06 +0000 (+0100) Subject: tools/win32: Invalidate CMake cache on build X-Git-Tag: v2.11.0-rc1~269^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcfde9ac22ff6bfde73ecfe1672bb686e1559e28;p=icinga2 tools/win32: Invalidate CMake cache on build --- diff --git a/tools/win32/configure.ps1 b/tools/win32/configure.ps1 index 1f40875ce..57fc03188 100644 --- a/tools/win32/configure.ps1 +++ b/tools/win32/configure.ps1 @@ -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 `