projects
/
icinga2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab49d3
)
tools/win32: Invalidate CMake cache on build
author
Markus Frosch
<markus.frosch@icinga.com>
Tue, 18 Dec 2018 10:52:06 +0000
(11:52 +0100)
committer
Markus Frosch
<markus.frosch@icinga.com>
Tue, 18 Dec 2018 10:52:06 +0000
(11:52 +0100)
tools/win32/configure.ps1
patch
|
blob
|
history
diff --git
a/tools/win32/configure.ps1
b/tools/win32/configure.ps1
index 1f40875ce5474b1a794d2e6148f151444352190d..57fc031886424ce103234712411d462b6c96aa94 100644
(file)
--- 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 `