mirror of https://github.com/Icinga/icinga2.git
parent
fcfde9ac22
commit
ace12db110
|
@ -11,6 +11,7 @@ environment:
|
||||||
BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_65_1\lib64-msvc-14.1'
|
BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_65_1\lib64-msvc-14.1'
|
||||||
BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe'
|
BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe'
|
||||||
FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe'
|
FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe'
|
||||||
|
CMAKE_BUILD_TYPE: Debug
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
|
@ -2,6 +2,9 @@ if (-not (Test-Path env:ICINGA2_BUILDPATH)) {
|
||||||
$env:ICINGA2_BUILDPATH = '.\build'
|
$env:ICINGA2_BUILDPATH = '.\build'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (-not (Test-Path env:CMAKE_BUILD_TYPE)) {
|
||||||
|
$env:CMAKE_BUILD_TYPE = 'RelWithDebInfo'
|
||||||
|
}
|
||||||
if (-not (Test-Path "$env:ICINGA2_BUILDPATH")) {
|
if (-not (Test-Path "$env:ICINGA2_BUILDPATH")) {
|
||||||
mkdir "$env:ICINGA2_BUILDPATH" | out-null
|
mkdir "$env:ICINGA2_BUILDPATH" | out-null
|
||||||
}
|
}
|
||||||
|
@ -59,7 +62,7 @@ if (Test-Path CMakeCache.txt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
& cmake.exe "$sourcePath" `
|
& cmake.exe "$sourcePath" `
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
-DCMAKE_BUILD_TYPE="$env:CMAKE_BUILD_TYPE" `
|
||||||
-G $env:CMAKE_GENERATOR -DCPACK_GENERATOR=WIX `
|
-G $env:CMAKE_GENERATOR -DCPACK_GENERATOR=WIX `
|
||||||
-DICINGA2_WITH_MYSQL=OFF -DICINGA2_WITH_PGSQL=OFF `
|
-DICINGA2_WITH_MYSQL=OFF -DICINGA2_WITH_PGSQL=OFF `
|
||||||
-DOPENSSL_ROOT_DIR="$env:OPENSSL_ROOT_DIR" `
|
-DOPENSSL_ROOT_DIR="$env:OPENSSL_ROOT_DIR" `
|
||||||
|
|
Loading…
Reference in New Issue