]> granicus.if.org Git - icinga2/commitdiff
appveyor: Run Debug builds 6843/head
authorMarkus Frosch <markus.frosch@icinga.com>
Tue, 18 Dec 2018 11:08:41 +0000 (12:08 +0100)
committerMarkus Frosch <markus.frosch@icinga.com>
Tue, 18 Dec 2018 11:23:39 +0000 (12:23 +0100)
[skip travis]

appveyor.yml
tools/win32/configure.ps1

index 6e7f09b73f5e95a58586f1b4a7c97ea85d2c4148..9d1150f72cd2b04360120b36425225cdf640adfe 100644 (file)
@@ -11,6 +11,7 @@ environment:
   BOOST_LIBRARYDIR: 'C:\Libraries\boost_1_65_1\lib64-msvc-14.1'
   BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe'
   FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe'
+  CMAKE_BUILD_TYPE: Debug
 
 branches:
   only:
index 57fc031886424ce103234712411d462b6c96aa94..0ea0a50cb280a380c5ed1144ccafc4124bd49b08 100644 (file)
@@ -2,6 +2,9 @@ if (-not (Test-Path env:ICINGA2_BUILDPATH)) {
   $env:ICINGA2_BUILDPATH = '.\build'
 }
 
+if (-not (Test-Path env:CMAKE_BUILD_TYPE)) {
+  $env:CMAKE_BUILD_TYPE = 'RelWithDebInfo'
+}
 if (-not (Test-Path "$env:ICINGA2_BUILDPATH")) {
   mkdir "$env:ICINGA2_BUILDPATH" | out-null
 }
@@ -59,7 +62,7 @@ if (Test-Path CMakeCache.txt) {
 }
 
 & cmake.exe "$sourcePath" `
-  -DCMAKE_BUILD_TYPE=RelWithDebInfo `
+  -DCMAKE_BUILD_TYPE="$env:CMAKE_BUILD_TYPE" `
   -G $env:CMAKE_GENERATOR -DCPACK_GENERATOR=WIX `
   -DICINGA2_WITH_MYSQL=OFF -DICINGA2_WITH_PGSQL=OFF `
   -DOPENSSL_ROOT_DIR="$env:OPENSSL_ROOT_DIR" `