summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-11-06 11:16:02 +0000
committerPatrick Steinhardt <ps@pks.im>2017-11-06 11:16:02 +0000
commit0b98a66baae83056401a0a5fef5dc5cd2ed3468b (patch)
tree1b2b9fe5f940cbdf0cba123ca1739a3e06b2c012
parent8233f6e36d8827986e1baeff4b7b4daa2cce46f4 (diff)
downloadlibgit2-0b98a66baae83056401a0a5fef5dc5cd2ed3468b.tar.gz
appveyor: build examples
By default, CMake will not build our examples directory. As we do not instruct either the MinGW or MSVC builds on AppVeyor to enable building these examples, we cannot verify that those examples at least build on Windows systems. Fix that by passing `-DBUILD_EXAMPLES=ON` to AppVeyor's CMake invocation.
-rw-r--r--appveyor.yml2
-rwxr-xr-xscript/appveyor-mingw.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 1ba8abbd1..e0c7b9b90 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -36,7 +36,7 @@ build_script:
mkdir build
cd build
if ($env:GENERATOR -ne "MSYS Makefiles") {
- cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON -D MSVC_CRTDBG=ON .. -G"$env:GENERATOR"
+ cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON -D BUILD_EXAMPLES=ON -D MSVC_CRTDBG=ON .. -G"$env:GENERATOR"
cmake --build . --config Debug
}
- cmd: |
diff --git a/script/appveyor-mingw.sh b/script/appveyor-mingw.sh
index d171a72d5..6b2a9425e 100755
--- a/script/appveyor-mingw.sh
+++ b/script/appveyor-mingw.sh
@@ -19,5 +19,5 @@ fi
cd build
gcc --version
cmake --version
-cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON .. -G"$GENERATOR"
+cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON -D BUILD_EXAMPLES=ON .. -G"$GENERATOR"
cmake --build . --config RelWithDebInfo