tag:help.appveyor.com,2012-11-13:/discussions/questions/43462-build-multiple-cmake-configurationsAppVeyor: Discussion 2019-11-05T19:57:24Ztag:help.appveyor.com,2012-11-13:Comment/478066592019-11-05T17:28:36Z2019-11-05T17:28:36ZBuild multiple CMake configurations<div><p>Hi Philip,</p>
<p>This is probably the config you are looking for:</p>
<pre>
<code>
version: 1.0.{build}
image:
- Visual Studio 2019
- Visual Studio 2017
configuration:
- Debug
- Release
environment:
matrix:
- DBUILD_SHARED_LIBS: 0
- DBUILD_SHARED_LIBS: 1
before_build:
- cmd: cmake -H. -B./build -DBUILD_SHARED_LIBS=%DBUILD_SHARED_LIBS%
build:
verbosity: normal</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/478066592019-11-05T19:57:22Z2019-11-05T19:57:24ZBuild multiple CMake configurations<div><p>That works great, thank you! I did not know that you can use environment variables for this.</p></div>Philip