mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 20:24:33 +02:00
tools/win32: Invalidate CMake cache on build
This commit is contained in:
parent
eab49d3df8
commit
fcfde9ac22
@ -53,6 +53,11 @@ cd "$env:ICINGA2_BUILDPATH"
|
|||||||
|
|
||||||
#-DCMAKE_INSTALL_PREFIX="C:\Program Files\Icinga2" `
|
#-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" `
|
& cmake.exe "$sourcePath" `
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
||||||
-G $env:CMAKE_GENERATOR -DCPACK_GENERATOR=WIX `
|
-G $env:CMAKE_GENERATOR -DCPACK_GENERATOR=WIX `
|
||||||
|
Loading…
x
Reference in New Issue
Block a user